SimpleAddress.java

1
package fr.sii.ogham.testing.sms.simulator.bean;
2
3
/**
4
 * Just provide field values
5
 * 
6
 * @author Aurélien Baudet
7
 *
8
 */
9
public class SimpleAddress implements Address {
10
	private final String address;
11
	private final byte ton;
12
	private final byte npi;
13
14
	/**
15
	 * @param address
16
	 *            the address (phone number, IP address or anything else)
17
	 * @param ton
18
	 *            the {@link TypeOfNumber}
19
	 * @param npi
20
	 *            the {@link NumberingPlanIndicator}
21
	 */
22
	public SimpleAddress(String address, byte ton, byte npi) {
23
		super();
24
		this.address = address;
25
		this.ton = ton;
26
		this.npi = npi;
27
	}
28
29
	@Override
30
	public byte getTon() {
31 4 1. getTon : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → SURVIVED
2. getTon : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → NO_COVERAGE
3. getTon : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → KILLED
4. getTon : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → KILLED
		return ton;
32
	}
33
34
	@Override
35
	public byte getNpi() {
36 4 1. getNpi : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → NO_COVERAGE
2. getNpi : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → KILLED
3. getNpi : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → KILLED
4. getNpi : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → KILLED
		return npi;
37
	}
38
39
	@Override
40
	public String getAddress() {
41 4 1. getAddress : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → NO_COVERAGE
2. getAddress : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → KILLED
3. getAddress : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → KILLED
4. getAddress : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → KILLED
		return address;
42
	}
43
44
}

Mutations

31

1.1
Location : getTon
Killed by : oghamall.it.sms.SmsSMPPGsm7bitTest.longMessage(oghamall.it.sms.SmsSMPPGsm7bitTest)
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → KILLED

2.2
Location : getTon
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → KILLED

3.3
Location : getTon
Killed by : none
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → SURVIVED

4.4
Location : getTon
Killed by : none
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getTon → NO_COVERAGE

36

1.1
Location : getNpi
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → KILLED

2.2
Location : getNpi
Killed by : none
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → NO_COVERAGE

3.3
Location : getNpi
Killed by : oghamcloudhopper.it.PartialConfigurationTest.nothingConfiguredAndLongMessageShouldSendOneLongMessageUsingDefaultEncoding(oghamcloudhopper.it.PartialConfigurationTest)
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → KILLED

4.4
Location : getNpi
Killed by : oghamall.it.sms.SmsSMPPGsm7bitTest.longMessage(oghamall.it.sms.SmsSMPPGsm7bitTest)
replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getNpi → KILLED

41

1.1
Location : getAddress
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → KILLED

2.2
Location : getAddress
Killed by : oghamall.it.sms.SmsSMPPGsm7bitTest.longMessage(oghamall.it.sms.SmsSMPPGsm7bitTest)
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → KILLED

3.3
Location : getAddress
Killed by : oghamcloudhopper.it.PartialConfigurationTest.nothingConfiguredAndLongMessageShouldSendOneLongMessageUsingDefaultEncoding(oghamcloudhopper.it.PartialConfigurationTest)
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → KILLED

4.4
Location : getAddress
Killed by : none
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/bean/SimpleAddress::getAddress → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM