1 | package fr.sii.ogham.sms.filler; | |
2 | ||
3 | import java.util.Map; | |
4 | ||
5 | import fr.sii.ogham.core.builder.configuration.ConfigurationValueBuilderHelper; | |
6 | import fr.sii.ogham.core.filler.AbstractMessageAwareFiller; | |
7 | import fr.sii.ogham.sms.message.Sms; | |
8 | ||
9 | public class SmsFiller extends AbstractMessageAwareFiller<Sms> { | |
10 | ||
11 | public SmsFiller(Map<String, ConfigurationValueBuilderHelper<?, ?>> defaultValues) { | |
12 | super(defaultValues, Sms.class); | |
13 | } | |
14 | ||
15 | @Override | |
16 | protected void fill(Sms sms) { | |
17 |
9
1. fill : negated conditional → SURVIVED 2. fill : negated conditional → NO_COVERAGE 3. fill : negated conditional → SURVIVED 4. fill : negated conditional → NO_COVERAGE 5. fill : negated conditional → TIMED_OUT 6. fill : negated conditional → KILLED 7. fill : negated conditional → KILLED 8. fill : negated conditional → KILLED 9. fill : negated conditional → KILLED |
if(sms.getFrom()==null && containsProperty("from")) { |
18 | sms.from(getProperty("from", String.class)); | |
19 | } | |
20 |
9
1. fill : negated conditional → NO_COVERAGE 2. fill : negated conditional → SURVIVED 3. fill : negated conditional → NO_COVERAGE 4. fill : negated conditional → TIMED_OUT 5. fill : negated conditional → KILLED 6. fill : negated conditional → KILLED 7. fill : negated conditional → KILLED 8. fill : negated conditional → KILLED 9. fill : negated conditional → KILLED |
if(!hasRecipients(sms) && containsProperty("to")) { |
21 | sms.to(getProperty("to", String[].class)); | |
22 | } | |
23 | } | |
24 | | |
25 | private static boolean hasRecipients(Sms sms) { | |
26 |
14
1. hasRecipients : replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → SURVIVED 2. hasRecipients : replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → NO_COVERAGE 3. hasRecipients : negated conditional → SURVIVED 4. hasRecipients : negated conditional → NO_COVERAGE 5. hasRecipients : negated conditional → NO_COVERAGE 6. hasRecipients : negated conditional → SURVIVED 7. hasRecipients : replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → TIMED_OUT 8. hasRecipients : negated conditional → TIMED_OUT 9. hasRecipients : negated conditional → TIMED_OUT 10. hasRecipients : replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → KILLED 11. hasRecipients : replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → KILLED 12. hasRecipients : negated conditional → KILLED 13. hasRecipients : negated conditional → KILLED 14. hasRecipients : negated conditional → KILLED |
return sms.getRecipients()!=null && !sms.getRecipients().isEmpty(); |
27 | } | |
28 | } | |
Mutations | ||
17 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 |
|
20 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 |
|
26 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 10.10 11.11 12.12 13.13 14.14 |