SmsFiller.java

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
Location : fill
Killed by : oghamcore.ut.sms.SmsFillerSpec
negated conditional → KILLED

2.2
Location : fill
Killed by : oghamall.it.sms.SmsCustomImplTest.simple(oghamall.it.sms.SmsCustomImplTest)
negated conditional → KILLED

3.3
Location : fill
Killed by : none
negated conditional → SURVIVED

4.4
Location : fill
Killed by : none
negated conditional → NO_COVERAGE

5.5
Location : fill
Killed by : none
negated conditional → TIMED_OUT

6.6
Location : fill
Killed by : none
negated conditional → SURVIVED

7.7
Location : fill
Killed by : oghamall.it.sms.SmsCustomImplTest.simple(oghamall.it.sms.SmsCustomImplTest)
negated conditional → KILLED

8.8
Location : fill
Killed by : none
negated conditional → NO_COVERAGE

9.9
Location : fill
Killed by : oghamcore.ut.sms.SmsFillerSpec
negated conditional → KILLED

20

1.1
Location : fill
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : fill
Killed by : oghamcore.ut.sms.SmsFillerSpec
negated conditional → KILLED

3.3
Location : fill
Killed by : none
negated conditional → TIMED_OUT

4.4
Location : fill
Killed by : oghamall.it.env.PropertyOverrideTest.externalThenPropertiesInCodeThenFile(oghamall.it.env.PropertyOverrideTest)
negated conditional → KILLED

5.5
Location : fill
Killed by : none
negated conditional → SURVIVED

6.6
Location : fill
Killed by : oghamall.it.env.PropertyOverrideTest.externalThenPropertiesInCodeThenFile(oghamall.it.env.PropertyOverrideTest)
negated conditional → KILLED

7.7
Location : fill
Killed by : oghamcore.ut.sms.SmsFillerSpec
negated conditional → KILLED

8.8
Location : fill
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
negated conditional → KILLED

9.9
Location : fill
Killed by : none
negated conditional → NO_COVERAGE

26

1.1
Location : hasRecipients
Killed by : none
replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → SURVIVED

2.2
Location : hasRecipients
Killed by : oghamall.it.env.PropertyOverrideTest.externalThenPropertiesInCodeThenFile(oghamall.it.env.PropertyOverrideTest)
replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → KILLED

3.3
Location : hasRecipients
Killed by : none
replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → TIMED_OUT

4.4
Location : hasRecipients
Killed by : none
replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → NO_COVERAGE

5.5
Location : hasRecipients
Killed by : oghamcore.ut.sms.SmsFillerSpec
replaced boolean return with true for fr/sii/ogham/sms/filler/SmsFiller::hasRecipients → KILLED

6.6
Location : hasRecipients
Killed by : none
negated conditional → SURVIVED

7.7
Location : hasRecipients
Killed by : none
negated conditional → NO_COVERAGE

8.8
Location : hasRecipients
Killed by : none
negated conditional → TIMED_OUT

9.9
Location : hasRecipients
Killed by : oghamcore.ut.sms.SmsFillerSpec
negated conditional → KILLED

10.10
Location : hasRecipients
Killed by : none
negated conditional → TIMED_OUT

11.11
Location : hasRecipients
Killed by : none
negated conditional → NO_COVERAGE

12.12
Location : hasRecipients
Killed by : oghamall.it.env.PropertyOverrideTest.externalThenPropertiesInCodeThenFile(oghamall.it.env.PropertyOverrideTest)
negated conditional → KILLED

13.13
Location : hasRecipients
Killed by : oghamcore.ut.sms.SmsFillerSpec
negated conditional → KILLED

14.14
Location : hasRecipients
Killed by : none
negated conditional → SURVIVED

Active mutators

Tests examined


Report generated by PIT OGHAM