1 | package fr.sii.ogham.testing.extension.junit.sms.config; | |
2 | ||
3 | import static fr.sii.ogham.testing.extension.junit.sms.config.SlowConfig.noWait; | |
4 | import static fr.sii.ogham.testing.extension.junit.sms.config.SlowConfig.waitFor; | |
5 | import static fr.sii.ogham.testing.util.RandomPortUtils.PORT_RANGE_MAX; | |
6 | import static fr.sii.ogham.testing.util.RandomPortUtils.PORT_RANGE_MIN; | |
7 | import static java.util.stream.Collectors.toList; | |
8 | ||
9 | import java.util.ArrayList; | |
10 | import java.util.Arrays; | |
11 | import java.util.List; | |
12 | ||
13 | import fr.sii.ogham.testing.sms.simulator.config.Awaiter; | |
14 | import fr.sii.ogham.testing.sms.simulator.config.Credentials; | |
15 | import fr.sii.ogham.testing.sms.simulator.config.ServerDelays; | |
16 | import fr.sii.ogham.testing.sms.simulator.config.ServerPortProvider; | |
17 | import fr.sii.ogham.testing.sms.simulator.config.SimulatorConfiguration; | |
18 | import fr.sii.ogham.testing.util.RandomPortUtils; | |
19 | ||
20 | /** | |
21 | * Builder to generate a {@link SimulatorConfiguration}. | |
22 | * | |
23 | * <p> | |
24 | * Default configuration: | |
25 | * <ul> | |
26 | * <li>Starts on random port</li> | |
27 | * <li>No delay</li> | |
28 | * <li>No credentials</li> | |
29 | * <li>Do not keep messages between tests</li> | |
30 | * </ul> | |
31 | * | |
32 | * @author Aurélien Baudet | |
33 | * | |
34 | */ | |
35 | public class ServerConfig { | |
36 | private PortConfig portConfig; | |
37 | private final List<Credentials> credentials = new ArrayList<>(); | |
38 | private SmppServerConfig annotationConfig; | |
39 | private SlowConfig slowConfig; | |
40 | private boolean keepMessages; | |
41 | ||
42 | /** | |
43 | * Start the server with a fixed port. | |
44 | * | |
45 | * @param port | |
46 | * the port value | |
47 | * @return this instance for fluent chaining | |
48 | */ | |
49 | public ServerConfig port(int port) { | |
50 | this.portConfig = new FixedPortConfig(port); | |
51 |
4
1. port : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::port → NO_COVERAGE 2. port : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::port → SURVIVED 3. port : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::port → TIMED_OUT 4. port : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::port → KILLED |
return this; |
52 | } | |
53 | ||
54 | /** | |
55 | * Start the server with a random port. | |
56 | * | |
57 | * The port is contained in the range | |
58 | * [{@link RandomPortUtils#PORT_RANGE_MIN}, | |
59 | * {@link RandomPortUtils#PORT_RANGE_MAX}]. | |
60 | * | |
61 | * @return this instance for fluent chaining | |
62 | */ | |
63 | public ServerConfig randomPort() { | |
64 |
2
1. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → NO_COVERAGE 2. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → KILLED |
return randomPort(PORT_RANGE_MAX); |
65 | } | |
66 | ||
67 | /** | |
68 | * Start the server with a random port. | |
69 | * | |
70 | * The port is contained in the range | |
71 | * [{@link RandomPortUtils#PORT_RANGE_MIN}, {@code maxPort}]. | |
72 | * | |
73 | * @param maxPort | |
74 | * the maximum port value | |
75 | * @return this instance for fluent chaining | |
76 | */ | |
77 | public ServerConfig randomPort(int maxPort) { | |
78 |
3
1. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → NO_COVERAGE 2. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → KILLED 3. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → KILLED |
return randomPort(PORT_RANGE_MIN, maxPort); |
79 | } | |
80 | ||
81 | /** | |
82 | * Start the server with a random port. | |
83 | * | |
84 | * The port is contained in the range [{@code minPort}, {@code maxPort}]. | |
85 | * | |
86 | * @param minPort | |
87 | * the minimum port value | |
88 | * @param maxPort | |
89 | * the maximum port value | |
90 | * @return this instance for fluent chaining | |
91 | */ | |
92 | public ServerConfig randomPort(int minPort, int maxPort) { | |
93 | this.portConfig = new RandomPortConfig(minPort, maxPort); | |
94 |
3
1. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → NO_COVERAGE 2. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → KILLED 3. randomPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::randomPort → KILLED |
return this; |
95 | } | |
96 | ||
97 | /** | |
98 | * Register allowed credentials. | |
99 | * | |
100 | * @param systemId | |
101 | * the system_id | |
102 | * @param password | |
103 | * the password | |
104 | * @return this instance for fluent chaining | |
105 | */ | |
106 | public ServerConfig credentials(String systemId, String password) { | |
107 | credentials.add(new Credentials(systemId, password)); | |
108 |
3
1. credentials : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::credentials → NO_COVERAGE 2. credentials : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::credentials → KILLED 3. credentials : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::credentials → KILLED |
return this; |
109 | } | |
110 | ||
111 | /** | |
112 | * Configure the simulator to behave like a slow server. | |
113 | * | |
114 | * @return the builder to control slow delays | |
115 | */ | |
116 | public SlowConfig slow() { | |
117 |
3
1. slow : negated conditional → NO_COVERAGE 2. slow : negated conditional → KILLED 3. slow : negated conditional → KILLED |
if (slowConfig == null) { |
118 | slowConfig = new SlowConfig(this); | |
119 | } | |
120 |
3
1. slow : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::slow → NO_COVERAGE 2. slow : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::slow → KILLED 3. slow : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::slow → KILLED |
return slowConfig; |
121 | } | |
122 | ||
123 | /** | |
124 | * Merge with configuration provided by annotation. | |
125 | * | |
126 | * The configuration provided by the annotation takes precedence over | |
127 | * configuration using builder methods. The aim is to be able to provide | |
128 | * common configuration for the test class using JUnit rules and be able to | |
129 | * override some configuration for a particular test. | |
130 | * | |
131 | * @param annotationConfig | |
132 | * the annotation configuration | |
133 | * @return this instance for fluent chaining | |
134 | */ | |
135 | public ServerConfig annotationConfig(SmppServerConfig annotationConfig) { | |
136 | this.annotationConfig = annotationConfig; | |
137 |
6
1. annotationConfig : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::annotationConfig → NO_COVERAGE 2. annotationConfig : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::annotationConfig → TIMED_OUT 3. annotationConfig : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::annotationConfig → KILLED 4. annotationConfig : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::annotationConfig → KILLED 5. annotationConfig : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::annotationConfig → KILLED 6. annotationConfig : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::annotationConfig → KILLED |
return this; |
138 | } | |
139 | ||
140 | /** | |
141 | * If the server is restarted, it indicates if received messages in the | |
142 | * previous session should be kept (true) or dropped (false). | |
143 | * | |
144 | * @param keep | |
145 | * indicate if messages should be kept or not between sessions | |
146 | * @return this instance for fluent chaining | |
147 | */ | |
148 | public ServerConfig keepMessages(boolean keep) { | |
149 | keepMessages = keep; | |
150 |
1
1. keepMessages : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::keepMessages → NO_COVERAGE |
return this; |
151 | } | |
152 | ||
153 | /** | |
154 | * Create the final {@link SimulatorConfiguration} that is used by the SMPP | |
155 | * server. | |
156 | * | |
157 | * @return the simulator configuration | |
158 | */ | |
159 | public SimulatorConfiguration build() { | |
160 | SimulatorConfiguration config = new SimulatorConfiguration(); | |
161 |
6
1. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setPort → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setPort → TIMED_OUT 3. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setPort → KILLED 4. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setPort → KILLED 5. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setPort → KILLED 6. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setPort → KILLED |
config.setPort(buildPort()); |
162 |
5
1. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setCredentials → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setCredentials → SURVIVED 3. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setCredentials → TIMED_OUT 4. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setCredentials → KILLED 5. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setCredentials → KILLED |
config.setCredentials(buildCredentials()); |
163 |
5
1. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setServerDelays → SURVIVED 2. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setServerDelays → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setServerDelays → TIMED_OUT 4. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setServerDelays → KILLED 5. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setServerDelays → KILLED |
config.setServerDelays(buildServerDelays()); |
164 |
3
1. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setKeepMessages → SURVIVED 2. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setKeepMessages → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/sms/simulator/config/SimulatorConfiguration::setKeepMessages → TIMED_OUT |
config.setKeepMessages(keepMessages); |
165 |
6
1. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::build → NO_COVERAGE 2. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::build → TIMED_OUT 3. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::build → KILLED 4. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::build → KILLED 5. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::build → KILLED 6. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::build → KILLED |
return config; |
166 | } | |
167 | ||
168 | private ServerPortProvider buildPort() { | |
169 |
6
1. buildPort : negated conditional → NO_COVERAGE 2. buildPort : negated conditional → TIMED_OUT 3. buildPort : negated conditional → KILLED 4. buildPort : negated conditional → KILLED 5. buildPort : negated conditional → KILLED 6. buildPort : negated conditional → KILLED |
if (portConfig == null) { |
170 |
7
1. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → NO_COVERAGE 2. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED 3. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED 4. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED 5. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED 6. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED 7. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED |
return new RandomPortConfig(PORT_RANGE_MIN, PORT_RANGE_MAX).build(); |
171 | } | |
172 |
5
1. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → NO_COVERAGE 2. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → TIMED_OUT 3. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED 4. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED 5. buildPort : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildPort → KILLED |
return portConfig.build(); |
173 | } | |
174 | ||
175 | private List<Credentials> buildCredentials() { | |
176 |
6
1. buildCredentials : negated conditional → NO_COVERAGE 2. buildCredentials : negated conditional → TIMED_OUT 3. buildCredentials : negated conditional → KILLED 4. buildCredentials : negated conditional → KILLED 5. buildCredentials : negated conditional → KILLED 6. buildCredentials : negated conditional → KILLED |
if (annotationConfig != null) { |
177 |
3
1. buildCredentials : replaced return value with Collections.emptyList for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildCredentials → SURVIVED 2. buildCredentials : replaced return value with Collections.emptyList for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildCredentials → NO_COVERAGE 3. lambda$buildCredentials$0 : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::lambda$buildCredentials$0 → NO_COVERAGE |
return Arrays.stream(annotationConfig.credentials()).map(c -> new Credentials(c.systemId(), c.password())).collect(toList()); |
178 | } | |
179 |
5
1. buildCredentials : replaced return value with Collections.emptyList for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildCredentials → SURVIVED 2. buildCredentials : replaced return value with Collections.emptyList for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildCredentials → NO_COVERAGE 3. buildCredentials : replaced return value with Collections.emptyList for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildCredentials → TIMED_OUT 4. buildCredentials : replaced return value with Collections.emptyList for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildCredentials → KILLED 5. buildCredentials : replaced return value with Collections.emptyList for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildCredentials → KILLED |
return credentials; |
180 | } | |
181 | ||
182 | private ServerDelays buildServerDelays() { | |
183 |
7
1. buildServerDelays : negated conditional → NO_COVERAGE 2. buildServerDelays : negated conditional → TIMED_OUT 3. buildServerDelays : negated conditional → KILLED 4. buildServerDelays : negated conditional → KILLED 5. buildServerDelays : negated conditional → KILLED 6. buildServerDelays : negated conditional → KILLED 7. buildServerDelays : negated conditional → KILLED |
if (annotationConfig != null) { |
184 |
2
1. buildServerDelays : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildServerDelays → NO_COVERAGE 2. buildServerDelays : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildServerDelays → KILLED |
return buildServerDelays(annotationConfig.slow()); |
185 | } | |
186 |
6
1. buildServerDelays : negated conditional → NO_COVERAGE 2. buildServerDelays : negated conditional → TIMED_OUT 3. buildServerDelays : negated conditional → KILLED 4. buildServerDelays : negated conditional → KILLED 5. buildServerDelays : negated conditional → KILLED 6. buildServerDelays : negated conditional → KILLED |
if (slowConfig != null) { |
187 |
3
1. buildServerDelays : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildServerDelays → NO_COVERAGE 2. buildServerDelays : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildServerDelays → KILLED 3. buildServerDelays : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildServerDelays → KILLED |
return slowConfig.build(); |
188 | } | |
189 | return null; | |
190 | } | |
191 | ||
192 | private static ServerDelays buildServerDelays(Slow slow) { | |
193 | ServerDelays delays = new ServerDelays(); | |
194 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendAlertNotificationWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendAlertNotificationWaiting → SURVIVED |
delays.setSendAlertNotificationWaiting(toAwaiter(slow.sendAlertNotificationDelay())); |
195 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendBindWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendBindWaiting → SURVIVED |
delays.setSendBindWaiting(toAwaiter(slow.sendBindDelay())); |
196 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendBindRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendBindRespWaiting → KILLED |
delays.setSendBindRespWaiting(toAwaiter(slow.sendBindRespDelay())); |
197 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendCancelSmWaiting → SURVIVED 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendCancelSmWaiting → NO_COVERAGE |
delays.setSendCancelSmWaiting(toAwaiter(slow.sendCancelSmDelay())); |
198 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendCancelSmRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendCancelSmRespWaiting → SURVIVED |
delays.setSendCancelSmRespWaiting(toAwaiter(slow.sendCancelSmRespDelay())); |
199 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDataSmWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDataSmWaiting → SURVIVED |
delays.setSendDataSmWaiting(toAwaiter(slow.sendDataSmDelay())); |
200 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDataSmRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDataSmRespWaiting → SURVIVED |
delays.setSendDataSmRespWaiting(toAwaiter(slow.sendDataSmRespDelay())); |
201 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDeliverSmWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDeliverSmWaiting → SURVIVED |
delays.setSendDeliverSmWaiting(toAwaiter(slow.sendDeliverSmDelay())); |
202 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDeliverSmRespWaiting → SURVIVED 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendDeliverSmRespWaiting → NO_COVERAGE |
delays.setSendDeliverSmRespWaiting(toAwaiter(slow.sendDeliverSmRespDelay())); |
203 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendEnquireLinkWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendEnquireLinkWaiting → SURVIVED |
delays.setSendEnquireLinkWaiting(toAwaiter(slow.sendEnquireLinkDelay())); |
204 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendEnquireLinkRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendEnquireLinkRespWaiting → SURVIVED |
delays.setSendEnquireLinkRespWaiting(toAwaiter(slow.sendEnquireLinkRespDelay())); |
205 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendGenericNackWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendGenericNackWaiting → SURVIVED |
delays.setSendGenericNackWaiting(toAwaiter(slow.sendGenericNackDelay())); |
206 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendHeaderWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendHeaderWaiting → SURVIVED |
delays.setSendHeaderWaiting(toAwaiter(slow.sendHeaderDelay())); |
207 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendOutbindWaiting → SURVIVED 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendOutbindWaiting → NO_COVERAGE |
delays.setSendOutbindWaiting(toAwaiter(slow.sendOutbindDelay())); |
208 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendQuerySmWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendQuerySmWaiting → SURVIVED |
delays.setSendQuerySmWaiting(toAwaiter(slow.sendQuerySmDelay())); |
209 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendQuerySmRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendQuerySmRespWaiting → SURVIVED |
delays.setSendQuerySmRespWaiting(toAwaiter(slow.sendQuerySmRespDelay())); |
210 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendReplaceSmWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendReplaceSmWaiting → SURVIVED |
delays.setSendReplaceSmWaiting(toAwaiter(slow.sendReplaceSmDelay())); |
211 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendReplaceSmRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendReplaceSmRespWaiting → SURVIVED |
delays.setSendReplaceSmRespWaiting(toAwaiter(slow.sendReplaceSmRespDelay())); |
212 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitMultiWaiting → SURVIVED 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitMultiWaiting → NO_COVERAGE |
delays.setSendSubmitMultiWaiting(toAwaiter(slow.sendSubmitMultiDelay())); |
213 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitMultiRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitMultiRespWaiting → SURVIVED |
delays.setSendSubmitMultiRespWaiting(toAwaiter(slow.sendSubmitMultiRespDelay())); |
214 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitSmWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitSmWaiting → SURVIVED |
delays.setSendSubmitSmWaiting(toAwaiter(slow.sendSubmitSmDelay())); |
215 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitSmRespWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendSubmitSmRespWaiting → KILLED |
delays.setSendSubmitSmRespWaiting(toAwaiter(slow.sendSubmitSmRespDelay())); |
216 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendUnbindWaiting → NO_COVERAGE 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendUnbindWaiting → SURVIVED |
delays.setSendUnbindWaiting(toAwaiter(slow.sendUnbindDelay())); |
217 |
2
1. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendUnbindRespWaiting → SURVIVED 2. buildServerDelays : removed call to fr/sii/ogham/testing/sms/simulator/config/ServerDelays::setSendUnbindRespWaiting → NO_COVERAGE |
delays.setSendUnbindRespWaiting(toAwaiter(slow.sendUnbindRespDelay())); |
218 |
2
1. buildServerDelays : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildServerDelays → NO_COVERAGE 2. buildServerDelays : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::buildServerDelays → KILLED |
return delays; |
219 | } | |
220 | ||
221 | private static Awaiter toAwaiter(long delayMs) { | |
222 |
2
1. toAwaiter : negated conditional → NO_COVERAGE 2. toAwaiter : negated conditional → KILLED |
if (delayMs == 0) { |
223 |
2
1. toAwaiter : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::toAwaiter → NO_COVERAGE 2. toAwaiter : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::toAwaiter → SURVIVED |
return noWait(); |
224 | } | |
225 |
2
1. toAwaiter : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::toAwaiter → NO_COVERAGE 2. toAwaiter : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/ServerConfig::toAwaiter → KILLED |
return waitFor(delayMs); |
226 | } | |
227 | } | |
Mutations | ||
51 |
1.1 2.2 3.3 4.4 |
|
64 |
1.1 2.2 |
|
78 |
1.1 2.2 3.3 |
|
94 |
1.1 2.2 3.3 |
|
108 |
1.1 2.2 3.3 |
|
117 |
1.1 2.2 3.3 |
|
120 |
1.1 2.2 3.3 |
|
137 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
150 |
1.1 |
|
161 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
162 |
1.1 2.2 3.3 4.4 5.5 |
|
163 |
1.1 2.2 3.3 4.4 5.5 |
|
164 |
1.1 2.2 3.3 |
|
165 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
169 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
170 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 |
|
172 |
1.1 2.2 3.3 4.4 5.5 |
|
176 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
177 |
1.1 2.2 3.3 |
|
179 |
1.1 2.2 3.3 4.4 5.5 |
|
183 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 |
|
184 |
1.1 2.2 |
|
186 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
187 |
1.1 2.2 3.3 |
|
194 |
1.1 2.2 |
|
195 |
1.1 2.2 |
|
196 |
1.1 2.2 |
|
197 |
1.1 2.2 |
|
198 |
1.1 2.2 |
|
199 |
1.1 2.2 |
|
200 |
1.1 2.2 |
|
201 |
1.1 2.2 |
|
202 |
1.1 2.2 |
|
203 |
1.1 2.2 |
|
204 |
1.1 2.2 |
|
205 |
1.1 2.2 |
|
206 |
1.1 2.2 |
|
207 |
1.1 2.2 |
|
208 |
1.1 2.2 |
|
209 |
1.1 2.2 |
|
210 |
1.1 2.2 |
|
211 |
1.1 2.2 |
|
212 |
1.1 2.2 |
|
213 |
1.1 2.2 |
|
214 |
1.1 2.2 |
|
215 |
1.1 2.2 |
|
216 |
1.1 2.2 |
|
217 |
1.1 2.2 |
|
218 |
1.1 2.2 |
|
222 |
1.1 2.2 |
|
223 |
1.1 2.2 |
|
225 |
1.1 2.2 |