1 | package fr.sii.ogham.html.inliner; | |
2 | ||
3 | import java.util.ArrayList; | |
4 | import java.util.Arrays; | |
5 | import java.util.List; | |
6 | ||
7 | import fr.sii.ogham.email.attachment.Attachment; | |
8 | ||
9 | public class ContentWithImages { | |
10 | private String content; | |
11 | | |
12 | private List<Attachment> attachments; | |
13 | ||
14 | public ContentWithImages(String content, Attachment... attachments) { | |
15 | this(content, new ArrayList<>(Arrays.asList(attachments))); | |
16 | } | |
17 | ||
18 | public ContentWithImages(String content, List<Attachment> attachments) { | |
19 | super(); | |
20 | this.content = content; | |
21 | this.attachments = attachments; | |
22 | } | |
23 | ||
24 | public String getContent() { | |
25 |
3
1. getContent : replaced return value with "" for fr/sii/ogham/html/inliner/ContentWithImages::getContent → NO_COVERAGE 2. getContent : replaced return value with "" for fr/sii/ogham/html/inliner/ContentWithImages::getContent → KILLED 3. getContent : replaced return value with "" for fr/sii/ogham/html/inliner/ContentWithImages::getContent → KILLED |
return content; |
26 | } | |
27 | ||
28 | public List<Attachment> getAttachments() { | |
29 |
3
1. getAttachments : replaced return value with Collections.emptyList for fr/sii/ogham/html/inliner/ContentWithImages::getAttachments → NO_COVERAGE 2. getAttachments : replaced return value with Collections.emptyList for fr/sii/ogham/html/inliner/ContentWithImages::getAttachments → KILLED 3. getAttachments : replaced return value with Collections.emptyList for fr/sii/ogham/html/inliner/ContentWithImages::getAttachments → KILLED |
return attachments; |
30 | } | |
31 | ||
32 | public void setContent(String content) { | |
33 | this.content = content; | |
34 | } | |
35 | ||
36 | public void setAttachments(List<Attachment> attachments) { | |
37 | this.attachments = attachments; | |
38 | } | |
39 | | |
40 | public void addAttachments(List<Attachment> attachments) { | |
41 | this.attachments.addAll(attachments); | |
42 | } | |
43 | } | |
Mutations | ||
25 |
1.1 2.2 3.3 |
|
29 |
1.1 2.2 3.3 |