| 1 | package fr.sii.ogham.testing.extension.junit.sms.config; | |
| 2 | ||
| 3 | import static org.awaitility.Awaitility.await; | |
| 4 | ||
| 5 | import java.util.function.BiConsumer; | |
| 6 | ||
| 7 | import org.slf4j.Logger; | |
| 8 | import org.slf4j.LoggerFactory; | |
| 9 | ||
| 10 | import fr.sii.ogham.testing.sms.simulator.config.Awaiter; | |
| 11 | import fr.sii.ogham.testing.sms.simulator.config.ServerDelays; | |
| 12 | import fr.sii.ogham.testing.util.HasParent; | |
| 13 | ||
| 14 | public class SlowConfig extends HasParent<ServerConfig> { | |
| 15 | private static final Logger LOG = LoggerFactory.getLogger(SlowConfig.class); | |
| 16 | | |
| 17 | private final WaitingConfHelper sendAlertNotification; | |
| 18 | private final WaitingConfHelper sendBind; | |
| 19 | private final WaitingConfHelper sendBindResp; | |
| 20 | private final WaitingConfHelper sendCancelSm; | |
| 21 | private final WaitingConfHelper sendCancelSmResp; | |
| 22 | private final WaitingConfHelper sendDataSm; | |
| 23 | private final WaitingConfHelper sendDataSmResp; | |
| 24 | private final WaitingConfHelper sendDeliverSm; | |
| 25 | private final WaitingConfHelper sendDeliverSmResp; | |
| 26 | private final WaitingConfHelper sendEnquireLink; | |
| 27 | private final WaitingConfHelper sendEnquireLinkResp; | |
| 28 | private final WaitingConfHelper sendGenericNack; | |
| 29 | private final WaitingConfHelper sendHeader; | |
| 30 | private final WaitingConfHelper sendOutbind; | |
| 31 | private final WaitingConfHelper sendQuerySm; | |
| 32 | private final WaitingConfHelper sendQuerySmResp; | |
| 33 | private final WaitingConfHelper sendReplaceSm; | |
| 34 | private final WaitingConfHelper sendReplaceSmResp; | |
| 35 | private final WaitingConfHelper sendSubmitMulti; | |
| 36 | private final WaitingConfHelper sendSubmitMultiResp; | |
| 37 | private final WaitingConfHelper sendSubmitSm; | |
| 38 | private final WaitingConfHelper sendSubmitSmResp; | |
| 39 | private final WaitingConfHelper sendUnbind; | |
| 40 | private final WaitingConfHelper sendUnbindResp; | |
| 41 | ||
| 42 | public SlowConfig(ServerConfig parent) { | |
| 43 | super(parent); | |
| 44 | sendAlertNotification = new WaitingConfHelper(ServerDelays::setSendAlertNotificationWaiting); | |
| 45 | sendBind = new WaitingConfHelper(ServerDelays::setSendBindWaiting); | |
| 46 | sendBindResp = new WaitingConfHelper(ServerDelays::setSendBindRespWaiting); | |
| 47 | sendCancelSm = new WaitingConfHelper(ServerDelays::setSendCancelSmWaiting); | |
| 48 | sendCancelSmResp = new WaitingConfHelper(ServerDelays::setSendCancelSmRespWaiting); | |
| 49 | sendDataSm = new WaitingConfHelper(ServerDelays::setSendDataSmWaiting); | |
| 50 | sendDataSmResp = new WaitingConfHelper(ServerDelays::setSendDataSmRespWaiting); | |
| 51 | sendDeliverSm = new WaitingConfHelper(ServerDelays::setSendDeliverSmWaiting); | |
| 52 | sendDeliverSmResp = new WaitingConfHelper(ServerDelays::setSendDeliverSmRespWaiting); | |
| 53 | sendEnquireLink = new WaitingConfHelper(ServerDelays::setSendEnquireLinkWaiting); | |
| 54 | sendEnquireLinkResp = new WaitingConfHelper(ServerDelays::setSendEnquireLinkRespWaiting); | |
| 55 | sendGenericNack = new WaitingConfHelper(ServerDelays::setSendGenericNackWaiting); | |
| 56 | sendHeader = new WaitingConfHelper(ServerDelays::setSendHeaderWaiting); | |
| 57 | sendOutbind = new WaitingConfHelper(ServerDelays::setSendOutbindWaiting); | |
| 58 | sendQuerySm = new WaitingConfHelper(ServerDelays::setSendQuerySmWaiting); | |
| 59 | sendQuerySmResp = new WaitingConfHelper(ServerDelays::setSendQuerySmRespWaiting); | |
| 60 | sendReplaceSm = new WaitingConfHelper(ServerDelays::setSendReplaceSmRespWaiting); | |
| 61 | sendReplaceSmResp = new WaitingConfHelper(ServerDelays::setSendReplaceSmRespWaiting); | |
| 62 | sendSubmitMulti = new WaitingConfHelper(ServerDelays::setSendSubmitMultiWaiting); | |
| 63 | sendSubmitMultiResp = new WaitingConfHelper(ServerDelays::setSendSubmitMultiRespWaiting); | |
| 64 | sendSubmitSm = new WaitingConfHelper(ServerDelays::setSendSubmitSmWaiting); | |
| 65 | sendSubmitSmResp = new WaitingConfHelper(ServerDelays::setSendSubmitSmRespWaiting); | |
| 66 | sendUnbind = new WaitingConfHelper(ServerDelays::setSendUnbindWaiting); | |
| 67 | sendUnbindResp = new WaitingConfHelper(ServerDelays::setSendUnbindRespWaiting); | |
| 68 | } | |
| 69 | ||
| 70 | /** | |
| 71 | * Simulate slow server by waiting {@code sendAlertNotificationDelay} | |
| 72 | * milliseconds before sending data | |
| 73 | * | |
| 74 | * <strong>NOTE:</strong> If {@link #sendAlertNotificationWaiting(Awaiter)} | |
| 75 | * is also called then this delay has no effect. | |
| 76 | * | |
| 77 | * @param delayMs | |
| 78 | * the time to wait before sending data | |
| 79 | * @return this instance for fluent chaining | |
| 80 | */ | |
| 81 | public SlowConfig sendAlertNotificationDelay(long delayMs) { | |
| 82 |
1
1. sendAlertNotificationDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendAlertNotification.setDelay(delayMs); |
| 83 |
1
1. sendAlertNotificationDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendAlertNotificationDelay → NO_COVERAGE |
return this; |
| 84 | } | |
| 85 | ||
| 86 | /** | |
| 87 | * Simulate slow server by executing {@code sendAlertNotificationWaiting} | |
| 88 | * function before sending data | |
| 89 | * | |
| 90 | * | |
| 91 | * <strong>NOTE:</strong> Calling {@link #sendAlertNotificationDelay(long)} | |
| 92 | * has no effect if waiting function is set. | |
| 93 | * | |
| 94 | * @param waiting | |
| 95 | * the function to execute to simulate delay before sending data | |
| 96 | * @return this instance for fluent chaining | |
| 97 | */ | |
| 98 | public SlowConfig sendAlertNotificationWaiting(Awaiter waiting) { | |
| 99 |
1
1. sendAlertNotificationWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendAlertNotification.setWaiting(waiting); |
| 100 |
1
1. sendAlertNotificationWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendAlertNotificationWaiting → NO_COVERAGE |
return this; |
| 101 | } | |
| 102 | ||
| 103 | /** | |
| 104 | * Simulate slow server by waiting {@code sendBindDelay} milliseconds before | |
| 105 | * sending data. | |
| 106 | * | |
| 107 | * <strong>NOTE:</strong> If {@link #sendBindWaiting(Awaiter)} is also | |
| 108 | * called then this delay has no effect. | |
| 109 | * | |
| 110 | * @param delayMs | |
| 111 | * the time to wait before sending data | |
| 112 | * @return this instance for fluent chaining | |
| 113 | */ | |
| 114 | public SlowConfig sendBindDelay(long delayMs) { | |
| 115 |
1
1. sendBindDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendBind.setDelay(delayMs); |
| 116 |
1
1. sendBindDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendBindDelay → NO_COVERAGE |
return this; |
| 117 | } | |
| 118 | ||
| 119 | /** | |
| 120 | * Simulate slow server by executing {@code sendBindWaiting} function before | |
| 121 | * sending data. | |
| 122 | * | |
| 123 | * <strong>NOTE:</strong> Calling {@link #sendBindDelay(long)} has no effect | |
| 124 | * if waiting function is set. | |
| 125 | * | |
| 126 | * @param waiting | |
| 127 | * the function to execute to simulate delay before sending data | |
| 128 | * @return this instance for fluent chaining | |
| 129 | */ | |
| 130 | public SlowConfig sendBindWaiting(Awaiter waiting) { | |
| 131 |
1
1. sendBindWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendBind.setWaiting(waiting); |
| 132 |
1
1. sendBindWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendBindWaiting → NO_COVERAGE |
return this; |
| 133 | } | |
| 134 | ||
| 135 | /** | |
| 136 | * Simulate slow server by waiting {@code sendBindRespDelay} milliseconds | |
| 137 | * before sending data. | |
| 138 | * | |
| 139 | * <strong>NOTE:</strong> If {@link #sendBindRespWaiting(Awaiter)} is also | |
| 140 | * called then this delay has no effect. | |
| 141 | * | |
| 142 | * @param delayMs | |
| 143 | * the time to wait before sending data | |
| 144 | * @return this instance for fluent chaining | |
| 145 | */ | |
| 146 | public SlowConfig sendBindRespDelay(long delayMs) { | |
| 147 |
2
1. sendBindRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE 2. sendBindRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → KILLED |
sendBindResp.setDelay(delayMs); |
| 148 |
2
1. sendBindRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendBindRespDelay → NO_COVERAGE 2. sendBindRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendBindRespDelay → KILLED |
return this; |
| 149 | } | |
| 150 | ||
| 151 | /** | |
| 152 | * Simulate slow server by executing {@code sendBindRespWaiting} function | |
| 153 | * before sending data. | |
| 154 | * | |
| 155 | * <strong>NOTE:</strong> Calling {@link #sendBindRespDelay(long)} has no | |
| 156 | * effect if waiting function is set. | |
| 157 | * | |
| 158 | * @param waiting | |
| 159 | * the function to execute to simulate delay before sending data | |
| 160 | * @return this instance for fluent chaining | |
| 161 | */ | |
| 162 | public SlowConfig sendBindRespWaiting(Awaiter waiting) { | |
| 163 |
1
1. sendBindRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendBindResp.setWaiting(waiting); |
| 164 |
1
1. sendBindRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendBindRespWaiting → NO_COVERAGE |
return this; |
| 165 | } | |
| 166 | ||
| 167 | /** | |
| 168 | * Simulate slow server by waiting {@code sendCancelSmDelay} milliseconds | |
| 169 | * before sending data. | |
| 170 | * | |
| 171 | * <strong>NOTE:</strong> If {@link #sendCancelSmWaiting(Awaiter)} is also | |
| 172 | * called then this delay has no effect. | |
| 173 | * | |
| 174 | * @param delayMs | |
| 175 | * the time to wait before sending data | |
| 176 | * @return this instance for fluent chaining | |
| 177 | */ | |
| 178 | public SlowConfig sendCancelSmDelay(long delayMs) { | |
| 179 |
1
1. sendCancelSmDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendCancelSm.setDelay(delayMs); |
| 180 |
1
1. sendCancelSmDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendCancelSmDelay → NO_COVERAGE |
return this; |
| 181 | } | |
| 182 | ||
| 183 | /** | |
| 184 | * Simulate slow server by executing {@code sendCancelSmWaiting} function | |
| 185 | * before sending data. | |
| 186 | * | |
| 187 | * <strong>NOTE:</strong> Calling {@link #sendCancelSmDelay(long)} has no | |
| 188 | * effect if waiting function is set. | |
| 189 | * | |
| 190 | * @param waiting | |
| 191 | * the function to execute to simulate delay before sending data | |
| 192 | * @return this instance for fluent chaining | |
| 193 | */ | |
| 194 | public SlowConfig sendCancelSmWaiting(Awaiter waiting) { | |
| 195 |
1
1. sendCancelSmWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendCancelSm.setWaiting(waiting); |
| 196 |
1
1. sendCancelSmWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendCancelSmWaiting → NO_COVERAGE |
return this; |
| 197 | } | |
| 198 | ||
| 199 | /** | |
| 200 | * Simulate slow server by waiting {@code sendCancelSmRespDelay} | |
| 201 | * milliseconds before sending data. | |
| 202 | * | |
| 203 | * <strong>NOTE:</strong> If {@link #sendCancelSmRespWaiting(Awaiter)} is | |
| 204 | * also called then this delay has no effect. | |
| 205 | * | |
| 206 | * @param delayMs | |
| 207 | * the time to wait before sending data | |
| 208 | * @return this instance for fluent chaining | |
| 209 | */ | |
| 210 | public SlowConfig sendCancelSmRespDelay(long delayMs) { | |
| 211 |
1
1. sendCancelSmRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendCancelSmResp.setDelay(delayMs); |
| 212 |
1
1. sendCancelSmRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendCancelSmRespDelay → NO_COVERAGE |
return this; |
| 213 | } | |
| 214 | ||
| 215 | /** | |
| 216 | * Simulate slow server by executing {@code sendCancelSmRespWaiting} | |
| 217 | * function before sending data. | |
| 218 | * | |
| 219 | * <strong>NOTE:</strong> Calling {@link #sendCancelSmRespDelay(long)} has | |
| 220 | * no effect if waiting function is set. | |
| 221 | * | |
| 222 | * @param waiting | |
| 223 | * the function to execute to simulate delay before sending data | |
| 224 | * @return this instance for fluent chaining | |
| 225 | */ | |
| 226 | public SlowConfig sendCancelSmRespWaiting(Awaiter waiting) { | |
| 227 |
1
1. sendCancelSmRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendCancelSmResp.setWaiting(waiting); |
| 228 |
1
1. sendCancelSmRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendCancelSmRespWaiting → NO_COVERAGE |
return this; |
| 229 | } | |
| 230 | ||
| 231 | /** | |
| 232 | * Simulate slow server by waiting {@code sendDataSmDelay} milliseconds | |
| 233 | * before sending data. | |
| 234 | * | |
| 235 | * <strong>NOTE:</strong> If {@link #sendDataSmWaiting(Awaiter)} is also | |
| 236 | * called then this delay has no effect. | |
| 237 | * | |
| 238 | * @param delayMs | |
| 239 | * the time to wait before sending data | |
| 240 | * @return this instance for fluent chaining | |
| 241 | */ | |
| 242 | public SlowConfig sendDataSmDelay(long delayMs) { | |
| 243 |
1
1. sendDataSmDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendDataSm.setDelay(delayMs); |
| 244 |
1
1. sendDataSmDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDataSmDelay → NO_COVERAGE |
return this; |
| 245 | } | |
| 246 | ||
| 247 | /** | |
| 248 | * Simulate slow server by executing {@code sendDataSmWaiting} function | |
| 249 | * before sending data. | |
| 250 | * | |
| 251 | * <strong>NOTE:</strong> Calling {@link #sendDataSmDelay(long)} has no | |
| 252 | * effect if waiting function is set. | |
| 253 | * | |
| 254 | * @param waiting | |
| 255 | * the function to execute to simulate delay before sending data | |
| 256 | * @return this instance for fluent chaining | |
| 257 | */ | |
| 258 | public SlowConfig sendDataSmWaiting(Awaiter waiting) { | |
| 259 |
1
1. sendDataSmWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendDataSm.setWaiting(waiting); |
| 260 |
1
1. sendDataSmWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDataSmWaiting → NO_COVERAGE |
return this; |
| 261 | } | |
| 262 | ||
| 263 | /** | |
| 264 | * Simulate slow server by waiting {@code sendDataSmRespDelay} milliseconds | |
| 265 | * before sending data. | |
| 266 | * | |
| 267 | * <strong>NOTE:</strong> If {@link #sendDataSmRespWaiting(Awaiter)} is also | |
| 268 | * called then this delay has no effect. | |
| 269 | * | |
| 270 | * @param delayMs | |
| 271 | * the time to wait before sending data | |
| 272 | * @return this instance for fluent chaining | |
| 273 | */ | |
| 274 | public SlowConfig sendDataSmRespDelay(long delayMs) { | |
| 275 |
1
1. sendDataSmRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendDataSmResp.setDelay(delayMs); |
| 276 |
1
1. sendDataSmRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDataSmRespDelay → NO_COVERAGE |
return this; |
| 277 | } | |
| 278 | ||
| 279 | /** | |
| 280 | * Simulate slow server by executing {@code sendDataSmRespWaiting} function | |
| 281 | * before sending data. | |
| 282 | * | |
| 283 | * <strong>NOTE:</strong> Calling {@link #sendDataSmRespDelay(long)} has no | |
| 284 | * effect if waiting function is set. | |
| 285 | * | |
| 286 | * @param waiting | |
| 287 | * the function to execute to simulate delay before sending data | |
| 288 | * @return this instance for fluent chaining | |
| 289 | */ | |
| 290 | public SlowConfig sendDataSmRespWaiting(Awaiter waiting) { | |
| 291 |
1
1. sendDataSmRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendDataSmResp.setWaiting(waiting); |
| 292 |
1
1. sendDataSmRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDataSmRespWaiting → NO_COVERAGE |
return this; |
| 293 | } | |
| 294 | ||
| 295 | /** | |
| 296 | * Simulate slow server by waiting {@code sendDeliverSmDelay} milliseconds | |
| 297 | * before sending data. | |
| 298 | * | |
| 299 | * <strong>NOTE:</strong> If {@link #sendDeliverSmWaiting(Awaiter)} is also | |
| 300 | * called then this delay has no effect. | |
| 301 | * | |
| 302 | * @param delayMs | |
| 303 | * the time to wait before sending data | |
| 304 | * @return this instance for fluent chaining | |
| 305 | */ | |
| 306 | public SlowConfig sendDeliverSmDelay(long delayMs) { | |
| 307 |
1
1. sendDeliverSmDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendDeliverSm.setDelay(delayMs); |
| 308 |
1
1. sendDeliverSmDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDeliverSmDelay → NO_COVERAGE |
return this; |
| 309 | } | |
| 310 | ||
| 311 | /** | |
| 312 | * Simulate slow server by executing {@code sendDeliverSmWaiting} function | |
| 313 | * before sending data. | |
| 314 | * | |
| 315 | * <strong>NOTE:</strong> Calling {@link #sendDeliverSmDelay(long)} has no | |
| 316 | * effect if waiting function is set. | |
| 317 | * | |
| 318 | * @param waiting | |
| 319 | * the function to execute to simulate delay before sending data | |
| 320 | * @return this instance for fluent chaining | |
| 321 | */ | |
| 322 | public SlowConfig sendDeliverSmWaiting(Awaiter waiting) { | |
| 323 |
1
1. sendDeliverSmWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendDeliverSm.setWaiting(waiting); |
| 324 |
1
1. sendDeliverSmWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDeliverSmWaiting → NO_COVERAGE |
return this; |
| 325 | } | |
| 326 | ||
| 327 | /** | |
| 328 | * Simulate slow server by waiting {@code sendDeliverSmRespDelay} | |
| 329 | * milliseconds before sending data. | |
| 330 | * | |
| 331 | * <strong>NOTE:</strong> If {@link #sendDeliverSmRespWaiting(Awaiter)} is | |
| 332 | * also called then this delay has no effect. | |
| 333 | * | |
| 334 | * @param delayMs | |
| 335 | * the time to wait before sending data | |
| 336 | * @return this instance for fluent chaining | |
| 337 | */ | |
| 338 | public SlowConfig sendDeliverSmRespDelay(long delayMs) { | |
| 339 |
1
1. sendDeliverSmRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendDeliverSmResp.setDelay(delayMs); |
| 340 |
1
1. sendDeliverSmRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDeliverSmRespDelay → NO_COVERAGE |
return this; |
| 341 | } | |
| 342 | ||
| 343 | /** | |
| 344 | * Simulate slow server by executing {@code sendDeliverSmRespWaiting} | |
| 345 | * function before sending data. | |
| 346 | * | |
| 347 | * <strong>NOTE:</strong> Calling {@link #sendDeliverSmRespDelay(long)} has | |
| 348 | * no effect if waiting function is set. | |
| 349 | * | |
| 350 | * @param waiting | |
| 351 | * the function to execute to simulate delay before sending data | |
| 352 | * @return this instance for fluent chaining | |
| 353 | */ | |
| 354 | public SlowConfig sendDeliverSmRespWaiting(Awaiter waiting) { | |
| 355 |
1
1. sendDeliverSmRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendDeliverSmResp.setWaiting(waiting); |
| 356 |
1
1. sendDeliverSmRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendDeliverSmRespWaiting → NO_COVERAGE |
return this; |
| 357 | } | |
| 358 | ||
| 359 | /** | |
| 360 | * Simulate slow server by waiting {@code sendEnquireLinkDelay} milliseconds | |
| 361 | * before sending data. | |
| 362 | * | |
| 363 | * <strong>NOTE:</strong> If {@link #sendEnquireLinkWaiting(Awaiter)} is | |
| 364 | * also called then this delay has no effect. | |
| 365 | * | |
| 366 | * @param delayMs | |
| 367 | * the time to wait before sending data | |
| 368 | * @return this instance for fluent chaining | |
| 369 | */ | |
| 370 | public SlowConfig sendEnquireLinkDelay(long delayMs) { | |
| 371 |
1
1. sendEnquireLinkDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendEnquireLink.setDelay(delayMs); |
| 372 |
1
1. sendEnquireLinkDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendEnquireLinkDelay → NO_COVERAGE |
return this; |
| 373 | } | |
| 374 | ||
| 375 | /** | |
| 376 | * Simulate slow server by executing {@code sendEnquireLinkWaiting} function | |
| 377 | * before sending data. | |
| 378 | * | |
| 379 | * <strong>NOTE:</strong> Calling {@link #sendEnquireLinkDelay(long)} has no | |
| 380 | * effect if waiting function is set. | |
| 381 | * | |
| 382 | * @param waiting | |
| 383 | * the function to execute to simulate delay before sending data | |
| 384 | * @return this instance for fluent chaining | |
| 385 | */ | |
| 386 | public SlowConfig sendEnquireLinkWaiting(Awaiter waiting) { | |
| 387 |
1
1. sendEnquireLinkWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendEnquireLink.setWaiting(waiting); |
| 388 |
1
1. sendEnquireLinkWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendEnquireLinkWaiting → NO_COVERAGE |
return this; |
| 389 | } | |
| 390 | ||
| 391 | /** | |
| 392 | * Simulate slow server by waiting {@code sendEnquireLinkRespDelay} | |
| 393 | * milliseconds before sending data. | |
| 394 | * | |
| 395 | * <strong>NOTE:</strong> If {@link #sendEnquireLinkRespWaiting(Awaiter)} is | |
| 396 | * also called then this delay has no effect. | |
| 397 | * | |
| 398 | * @param delayMs | |
| 399 | * the time to wait before sending data | |
| 400 | * @return this instance for fluent chaining | |
| 401 | */ | |
| 402 | public SlowConfig sendEnquireLinkRespDelay(long delayMs) { | |
| 403 |
2
1. sendEnquireLinkRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE 2. sendEnquireLinkRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → KILLED |
sendEnquireLinkResp.setDelay(delayMs); |
| 404 |
2
1. sendEnquireLinkRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendEnquireLinkRespDelay → NO_COVERAGE 2. sendEnquireLinkRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendEnquireLinkRespDelay → KILLED |
return this; |
| 405 | } | |
| 406 | ||
| 407 | /** | |
| 408 | * Simulate slow server by executing {@code sendEnquireLinkRespWaiting} | |
| 409 | * function before sending data. | |
| 410 | * | |
| 411 | * <strong>NOTE:</strong> Calling {@link #sendEnquireLinkRespDelay(long)} | |
| 412 | * has no effect if waiting function is set. | |
| 413 | * | |
| 414 | * @param waiting | |
| 415 | * the function to execute to simulate delay before sending data | |
| 416 | * @return this instance for fluent chaining | |
| 417 | */ | |
| 418 | public SlowConfig sendEnquireLinkRespWaiting(Awaiter waiting) { | |
| 419 |
1
1. sendEnquireLinkRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendEnquireLinkResp.setWaiting(waiting); |
| 420 |
1
1. sendEnquireLinkRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendEnquireLinkRespWaiting → NO_COVERAGE |
return this; |
| 421 | } | |
| 422 | ||
| 423 | /** | |
| 424 | * Simulate slow server by waiting {@code sendGenericNackDelay} milliseconds | |
| 425 | * before sending data. | |
| 426 | * | |
| 427 | * <strong>NOTE:</strong> If {@link #sendGenericNackWaiting(Awaiter)} is | |
| 428 | * also called then this delay has no effect. | |
| 429 | * | |
| 430 | * @param delayMs | |
| 431 | * the time to wait before sending data | |
| 432 | * @return this instance for fluent chaining | |
| 433 | */ | |
| 434 | public SlowConfig sendGenericNackDelay(long delayMs) { | |
| 435 |
1
1. sendGenericNackDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendGenericNack.setDelay(delayMs); |
| 436 |
1
1. sendGenericNackDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendGenericNackDelay → NO_COVERAGE |
return this; |
| 437 | } | |
| 438 | ||
| 439 | /** | |
| 440 | * Simulate slow server by executing {@code sendGenericNackWaiting} function | |
| 441 | * before sending data. | |
| 442 | * | |
| 443 | * <strong>NOTE:</strong> Calling {@link #sendGenericNackDelay(long)} has no | |
| 444 | * effect if waiting function is set. | |
| 445 | * | |
| 446 | * @param waiting | |
| 447 | * the function to execute to simulate delay before sending data | |
| 448 | * @return this instance for fluent chaining | |
| 449 | */ | |
| 450 | public SlowConfig sendGenericNackWaiting(Awaiter waiting) { | |
| 451 |
1
1. sendGenericNackWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendGenericNack.setWaiting(waiting); |
| 452 |
1
1. sendGenericNackWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendGenericNackWaiting → NO_COVERAGE |
return this; |
| 453 | } | |
| 454 | ||
| 455 | /** | |
| 456 | * Simulate slow server by waiting {@code sendHeaderDelay} milliseconds | |
| 457 | * before sending data. | |
| 458 | * | |
| 459 | * <strong>NOTE:</strong> If {@link #sendHeaderWaiting(Awaiter)} is also | |
| 460 | * called then this delay has no effect. | |
| 461 | * | |
| 462 | * @param delayMs | |
| 463 | * the time to wait before sending data | |
| 464 | * @return this instance for fluent chaining | |
| 465 | */ | |
| 466 | public SlowConfig sendHeaderDelay(long delayMs) { | |
| 467 |
1
1. sendHeaderDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendHeader.setDelay(delayMs); |
| 468 |
1
1. sendHeaderDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendHeaderDelay → NO_COVERAGE |
return this; |
| 469 | } | |
| 470 | ||
| 471 | /** | |
| 472 | * Simulate slow server by executing {@code sendHeaderWaiting} function | |
| 473 | * before sending data. | |
| 474 | * | |
| 475 | * <strong>NOTE:</strong> Calling {@link #sendHeaderDelay(long)} has no | |
| 476 | * effect if waiting function is set. | |
| 477 | * | |
| 478 | * @param waiting | |
| 479 | * the function to execute to simulate delay before sending data | |
| 480 | * @return this instance for fluent chaining | |
| 481 | */ | |
| 482 | public SlowConfig sendHeaderWaiting(Awaiter waiting) { | |
| 483 |
1
1. sendHeaderWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendHeader.setWaiting(waiting); |
| 484 |
1
1. sendHeaderWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendHeaderWaiting → NO_COVERAGE |
return this; |
| 485 | } | |
| 486 | ||
| 487 | /** | |
| 488 | * Simulate slow server by waiting {@code sendOutbindDelay} milliseconds | |
| 489 | * before sending data. | |
| 490 | * | |
| 491 | * <strong>NOTE:</strong> If {@link #sendOutbindWaiting(Awaiter)} is also | |
| 492 | * called then this delay has no effect. | |
| 493 | * | |
| 494 | * @param delayMs | |
| 495 | * the time to wait before sending data | |
| 496 | * @return this instance for fluent chaining | |
| 497 | */ | |
| 498 | public SlowConfig sendOutbindDelay(long delayMs) { | |
| 499 |
1
1. sendOutbindDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendOutbind.setDelay(delayMs); |
| 500 |
1
1. sendOutbindDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendOutbindDelay → NO_COVERAGE |
return this; |
| 501 | } | |
| 502 | ||
| 503 | /** | |
| 504 | * Simulate slow server by executing {@code sendOutbindWaiting} function | |
| 505 | * before sending data. | |
| 506 | * | |
| 507 | * <strong>NOTE:</strong> Calling {@link #sendOutbindDelay(long)} has no | |
| 508 | * effect if waiting function is set. | |
| 509 | * | |
| 510 | * @param waiting | |
| 511 | * the function to execute to simulate delay before sending data | |
| 512 | * @return this instance for fluent chaining | |
| 513 | */ | |
| 514 | public SlowConfig sendOutbindWaiting(Awaiter waiting) { | |
| 515 |
1
1. sendOutbindWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendOutbind.setWaiting(waiting); |
| 516 |
1
1. sendOutbindWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendOutbindWaiting → NO_COVERAGE |
return this; |
| 517 | } | |
| 518 | ||
| 519 | /** | |
| 520 | * Simulate slow server by waiting {@code sendQuerySmDelay} milliseconds | |
| 521 | * before sending data. | |
| 522 | * | |
| 523 | * <strong>NOTE:</strong> If {@link #sendQuerySmWaiting(Awaiter)} is also | |
| 524 | * called then this delay has no effect. | |
| 525 | * | |
| 526 | * @param delayMs | |
| 527 | * the time to wait before sending data | |
| 528 | * @return this instance for fluent chaining | |
| 529 | */ | |
| 530 | public SlowConfig sendQuerySmDelay(long delayMs) { | |
| 531 |
1
1. sendQuerySmDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendQuerySm.setDelay(delayMs); |
| 532 |
1
1. sendQuerySmDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendQuerySmDelay → NO_COVERAGE |
return this; |
| 533 | } | |
| 534 | ||
| 535 | /** | |
| 536 | * Simulate slow server by executing {@code sendQuerySmWaiting} function | |
| 537 | * before sending data. | |
| 538 | * | |
| 539 | * <strong>NOTE:</strong> Calling {@link #sendQuerySmDelay(long)} has no | |
| 540 | * effect if waiting function is set. | |
| 541 | * | |
| 542 | * @param waiting | |
| 543 | * the function to execute to simulate delay before sending data | |
| 544 | * @return this instance for fluent chaining | |
| 545 | */ | |
| 546 | public SlowConfig sendQuerySmWaiting(Awaiter waiting) { | |
| 547 |
1
1. sendQuerySmWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendQuerySm.setWaiting(waiting); |
| 548 |
1
1. sendQuerySmWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendQuerySmWaiting → NO_COVERAGE |
return this; |
| 549 | } | |
| 550 | ||
| 551 | /** | |
| 552 | * Simulate slow server by waiting {@code sendQuerySmRespDelay} milliseconds | |
| 553 | * before sending data. | |
| 554 | * | |
| 555 | * <strong>NOTE:</strong> If {@link #sendQuerySmRespWaiting(Awaiter)} is | |
| 556 | * also called then this delay has no effect. | |
| 557 | * | |
| 558 | * @param delayMs | |
| 559 | * the time to wait before sending data | |
| 560 | * @return this instance for fluent chaining | |
| 561 | */ | |
| 562 | public SlowConfig sendQuerySmRespDelay(long delayMs) { | |
| 563 |
1
1. sendQuerySmRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendQuerySmResp.setDelay(delayMs); |
| 564 |
1
1. sendQuerySmRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendQuerySmRespDelay → NO_COVERAGE |
return this; |
| 565 | } | |
| 566 | ||
| 567 | /** | |
| 568 | * Simulate slow server by executing {@code sendQuerySmRespWaiting} function | |
| 569 | * before sending data. | |
| 570 | * | |
| 571 | * <strong>NOTE:</strong> Calling {@link #sendQuerySmRespDelay(long)} has no | |
| 572 | * effect if waiting function is set. | |
| 573 | * | |
| 574 | * @param waiting | |
| 575 | * the function to execute to simulate delay before sending data | |
| 576 | * @return this instance for fluent chaining | |
| 577 | */ | |
| 578 | public SlowConfig sendQuerySmRespWaiting(Awaiter waiting) { | |
| 579 |
1
1. sendQuerySmRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendQuerySmResp.setWaiting(waiting); |
| 580 |
1
1. sendQuerySmRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendQuerySmRespWaiting → NO_COVERAGE |
return this; |
| 581 | } | |
| 582 | ||
| 583 | /** | |
| 584 | * Simulate slow server by waiting {@code sendReplaceSmDelay} milliseconds | |
| 585 | * before sending data. | |
| 586 | * | |
| 587 | * <strong>NOTE:</strong> If {@link #sendReplaceSmWaiting(Awaiter)} is also | |
| 588 | * called then this delay has no effect. | |
| 589 | * | |
| 590 | * @param delayMs | |
| 591 | * the time to wait before sending data | |
| 592 | * @return this instance for fluent chaining | |
| 593 | */ | |
| 594 | public SlowConfig sendReplaceSmDelay(long delayMs) { | |
| 595 |
1
1. sendReplaceSmDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendReplaceSm.setDelay(delayMs); |
| 596 |
1
1. sendReplaceSmDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendReplaceSmDelay → NO_COVERAGE |
return this; |
| 597 | } | |
| 598 | ||
| 599 | /** | |
| 600 | * Simulate slow server by executing {@code sendReplaceSmWaiting} function | |
| 601 | * before sending data. | |
| 602 | * | |
| 603 | * <strong>NOTE:</strong> Calling {@link #sendReplaceSmDelay(long)} has no | |
| 604 | * effect if waiting function is set. | |
| 605 | * | |
| 606 | * @param waiting | |
| 607 | * the function to execute to simulate delay before sending data | |
| 608 | * @return this instance for fluent chaining | |
| 609 | */ | |
| 610 | public SlowConfig sendReplaceSmWaiting(Awaiter waiting) { | |
| 611 |
1
1. sendReplaceSmWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendReplaceSm.setWaiting(waiting); |
| 612 |
1
1. sendReplaceSmWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendReplaceSmWaiting → NO_COVERAGE |
return this; |
| 613 | } | |
| 614 | ||
| 615 | /** | |
| 616 | * Simulate slow server by waiting {@code sendReplaceSmRespDelay} | |
| 617 | * milliseconds before sending data. | |
| 618 | * | |
| 619 | * <strong>NOTE:</strong> If {@link #sendReplaceSmRespWaiting(Awaiter)} is | |
| 620 | * also called then this delay has no effect. | |
| 621 | * | |
| 622 | * @param delayMs | |
| 623 | * the time to wait before sending data | |
| 624 | * @return this instance for fluent chaining | |
| 625 | */ | |
| 626 | public SlowConfig sendReplaceSmRespDelay(long delayMs) { | |
| 627 |
1
1. sendReplaceSmRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendReplaceSmResp.setDelay(delayMs); |
| 628 |
1
1. sendReplaceSmRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendReplaceSmRespDelay → NO_COVERAGE |
return this; |
| 629 | } | |
| 630 | ||
| 631 | /** | |
| 632 | * Simulate slow server by executing {@code sendReplaceSmRespWaiting} | |
| 633 | * function before sending data. | |
| 634 | * | |
| 635 | * <strong>NOTE:</strong> Calling {@link #sendReplaceSmRespDelay(long)} has | |
| 636 | * no effect if waiting function is set. | |
| 637 | * | |
| 638 | * @param waiting | |
| 639 | * the function to execute to simulate delay before sending data | |
| 640 | * @return this instance for fluent chaining | |
| 641 | */ | |
| 642 | public SlowConfig sendReplaceSmRespWaiting(Awaiter waiting) { | |
| 643 |
1
1. sendReplaceSmRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendReplaceSmResp.setWaiting(waiting); |
| 644 |
1
1. sendReplaceSmRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendReplaceSmRespWaiting → NO_COVERAGE |
return this; |
| 645 | } | |
| 646 | ||
| 647 | /** | |
| 648 | * Simulate slow server by waiting {@code sendSubmitMultiDelay} milliseconds | |
| 649 | * before sending data. | |
| 650 | * | |
| 651 | * <strong>NOTE:</strong> If {@link #sendSubmitMultiWaiting(Awaiter)} is | |
| 652 | * also called then this delay has no effect. | |
| 653 | * | |
| 654 | * @param delayMs | |
| 655 | * the time to wait before sending data | |
| 656 | * @return this instance for fluent chaining | |
| 657 | */ | |
| 658 | public SlowConfig sendSubmitMultiDelay(long delayMs) { | |
| 659 |
1
1. sendSubmitMultiDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendSubmitMulti.setDelay(delayMs); |
| 660 |
1
1. sendSubmitMultiDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitMultiDelay → NO_COVERAGE |
return this; |
| 661 | } | |
| 662 | ||
| 663 | /** | |
| 664 | * Simulate slow server by executing {@code sendSubmitMultiWaiting} function | |
| 665 | * before sending data. | |
| 666 | * | |
| 667 | * <strong>NOTE:</strong> Calling {@link #sendSubmitMultiDelay(long)} has no | |
| 668 | * effect if waiting function is set. | |
| 669 | * | |
| 670 | * @param waiting | |
| 671 | * the function to execute to simulate delay before sending data | |
| 672 | * @return this instance for fluent chaining | |
| 673 | */ | |
| 674 | public SlowConfig sendSubmitMultiWaiting(Awaiter waiting) { | |
| 675 |
1
1. sendSubmitMultiWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendSubmitMulti.setWaiting(waiting); |
| 676 |
1
1. sendSubmitMultiWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitMultiWaiting → NO_COVERAGE |
return this; |
| 677 | } | |
| 678 | ||
| 679 | /** | |
| 680 | * Simulate slow server by waiting {@code sendSubmitMultiRespDelay} | |
| 681 | * milliseconds before sending data. | |
| 682 | * | |
| 683 | * <strong>NOTE:</strong> If {@link #sendSubmitMultiRespWaiting(Awaiter)} is | |
| 684 | * also called then this delay has no effect. | |
| 685 | * | |
| 686 | * @param delayMs | |
| 687 | * the time to wait before sending data | |
| 688 | * @return this instance for fluent chaining | |
| 689 | */ | |
| 690 | public SlowConfig sendSubmitMultiRespDelay(long delayMs) { | |
| 691 |
1
1. sendSubmitMultiRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendSubmitMultiResp.setDelay(delayMs); |
| 692 |
1
1. sendSubmitMultiRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitMultiRespDelay → NO_COVERAGE |
return this; |
| 693 | } | |
| 694 | ||
| 695 | /** | |
| 696 | * Simulate slow server by executing {@code sendSubmitMultiRespWaiting} | |
| 697 | * function before sending data. | |
| 698 | * | |
| 699 | * <strong>NOTE:</strong> Calling {@link #sendSubmitMultiRespDelay(long)} | |
| 700 | * has no effect if waiting function is set. | |
| 701 | * | |
| 702 | * @param waiting | |
| 703 | * the function to execute to simulate delay before sending data | |
| 704 | * @return this instance for fluent chaining | |
| 705 | */ | |
| 706 | public SlowConfig sendSubmitMultiRespWaiting(Awaiter waiting) { | |
| 707 |
1
1. sendSubmitMultiRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendSubmitMultiResp.setWaiting(waiting); |
| 708 |
1
1. sendSubmitMultiRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitMultiRespWaiting → NO_COVERAGE |
return this; |
| 709 | } | |
| 710 | ||
| 711 | /** | |
| 712 | * Simulate slow server by waiting {@code sendSubmitSmDelay} milliseconds | |
| 713 | * before sending data. | |
| 714 | * | |
| 715 | * <strong>NOTE:</strong> If {@link #sendSubmitSmWaiting(Awaiter)} is also | |
| 716 | * called then this delay has no effect. | |
| 717 | * | |
| 718 | * @param delayMs | |
| 719 | * the time to wait before sending data | |
| 720 | * @return this instance for fluent chaining | |
| 721 | */ | |
| 722 | public SlowConfig sendSubmitSmDelay(long delayMs) { | |
| 723 |
1
1. sendSubmitSmDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendSubmitSm.setDelay(delayMs); |
| 724 |
1
1. sendSubmitSmDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitSmDelay → NO_COVERAGE |
return this; |
| 725 | } | |
| 726 | ||
| 727 | /** | |
| 728 | * Simulate slow server by executing {@code sendSubmitSmWaiting} function | |
| 729 | * before sending data. | |
| 730 | * | |
| 731 | * <strong>NOTE:</strong> Calling {@link #sendSubmitSmDelay(long)} has no | |
| 732 | * effect if waiting function is set. | |
| 733 | * | |
| 734 | * @param waiting | |
| 735 | * the function to execute to simulate delay before sending data | |
| 736 | * @return this instance for fluent chaining | |
| 737 | */ | |
| 738 | public SlowConfig sendSubmitSmWaiting(Awaiter waiting) { | |
| 739 |
1
1. sendSubmitSmWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendSubmitSm.setWaiting(waiting); |
| 740 |
1
1. sendSubmitSmWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitSmWaiting → NO_COVERAGE |
return this; |
| 741 | } | |
| 742 | ||
| 743 | /** | |
| 744 | * Simulate slow server by waiting {@code sendSubmitSmRespDelay} | |
| 745 | * milliseconds before sending data. | |
| 746 | * | |
| 747 | * <strong>NOTE:</strong> If {@link #sendSubmitSmRespWaiting(Awaiter)} is | |
| 748 | * also called then this delay has no effect. | |
| 749 | * | |
| 750 | * @param delayMs | |
| 751 | * the time to wait before sending data | |
| 752 | * @return this instance for fluent chaining | |
| 753 | */ | |
| 754 | public SlowConfig sendSubmitSmRespDelay(long delayMs) { | |
| 755 |
2
1. sendSubmitSmRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE 2. sendSubmitSmRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → KILLED |
sendSubmitSmResp.setDelay(delayMs); |
| 756 |
2
1. sendSubmitSmRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitSmRespDelay → NO_COVERAGE 2. sendSubmitSmRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitSmRespDelay → KILLED |
return this; |
| 757 | } | |
| 758 | ||
| 759 | /** | |
| 760 | * Simulate slow server by executing {@code sendSubmitSmRespWaiting} | |
| 761 | * function before sending data. | |
| 762 | * | |
| 763 | * <strong>NOTE:</strong> Calling {@link #sendSubmitSmRespDelay(long)} has | |
| 764 | * no effect if waiting function is set. | |
| 765 | * | |
| 766 | * @param waiting | |
| 767 | * the function to execute to simulate delay before sending data | |
| 768 | * @return this instance for fluent chaining | |
| 769 | */ | |
| 770 | public SlowConfig sendSubmitSmRespWaiting(Awaiter waiting) { | |
| 771 |
1
1. sendSubmitSmRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendSubmitSmResp.setWaiting(waiting); |
| 772 |
1
1. sendSubmitSmRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendSubmitSmRespWaiting → NO_COVERAGE |
return this; |
| 773 | } | |
| 774 | ||
| 775 | /** | |
| 776 | * Simulate slow server by waiting {@code sendUnbindDelay} milliseconds | |
| 777 | * before sending data. | |
| 778 | * | |
| 779 | * <strong>NOTE:</strong> If {@link #sendUnbindWaiting(Awaiter)} is also | |
| 780 | * called then this delay has no effect. | |
| 781 | * | |
| 782 | * @param delayMs | |
| 783 | * the time to wait before sending data | |
| 784 | * @return this instance for fluent chaining | |
| 785 | */ | |
| 786 | public SlowConfig sendUnbindDelay(long delayMs) { | |
| 787 |
1
1. sendUnbindDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendUnbind.setDelay(delayMs); |
| 788 |
1
1. sendUnbindDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendUnbindDelay → NO_COVERAGE |
return this; |
| 789 | } | |
| 790 | ||
| 791 | /** | |
| 792 | * Simulate slow server by executing {@code sendUnbindWaiting} function | |
| 793 | * before sending data. | |
| 794 | * | |
| 795 | * <strong>NOTE:</strong> Calling {@link #sendUnbindDelay(long)} has no | |
| 796 | * effect if waiting function is set. | |
| 797 | * | |
| 798 | * @param waiting | |
| 799 | * the function to execute to simulate delay before sending data | |
| 800 | * @return this instance for fluent chaining | |
| 801 | */ | |
| 802 | public SlowConfig sendUnbindWaiting(Awaiter waiting) { | |
| 803 |
1
1. sendUnbindWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendUnbind.setWaiting(waiting); |
| 804 |
1
1. sendUnbindWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendUnbindWaiting → NO_COVERAGE |
return this; |
| 805 | } | |
| 806 | ||
| 807 | /** | |
| 808 | * Simulate slow server by waiting {@code sendUnbindRespDelay} milliseconds | |
| 809 | * before sending data. | |
| 810 | * | |
| 811 | * <strong>NOTE:</strong> If {@link #sendUnbindRespWaiting(Awaiter)} is also | |
| 812 | * called then this delay has no effect. | |
| 813 | * | |
| 814 | * @param delayMs | |
| 815 | * the time to wait before sending data | |
| 816 | * @return this instance for fluent chaining | |
| 817 | */ | |
| 818 | public SlowConfig sendUnbindRespDelay(long delayMs) { | |
| 819 |
1
1. sendUnbindRespDelay : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setDelay → NO_COVERAGE |
sendUnbindResp.setDelay(delayMs); |
| 820 |
1
1. sendUnbindRespDelay : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendUnbindRespDelay → NO_COVERAGE |
return this; |
| 821 | } | |
| 822 | ||
| 823 | /** | |
| 824 | * Simulate slow server by executing {@code sendUnbindRespWaiting} function | |
| 825 | * before sending data. | |
| 826 | * | |
| 827 | * <strong>NOTE:</strong> Calling {@link #sendUnbindRespDelay(long)} has no | |
| 828 | * effect if waiting function is set. | |
| 829 | * | |
| 830 | * @param waiting | |
| 831 | * the function to execute to simulate delay before sending data | |
| 832 | * @return this instance for fluent chaining | |
| 833 | */ | |
| 834 | public SlowConfig sendUnbindRespWaiting(Awaiter waiting) { | |
| 835 |
1
1. sendUnbindRespWaiting : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::setWaiting → NO_COVERAGE |
sendUnbindResp.setWaiting(waiting); |
| 836 |
1
1. sendUnbindRespWaiting : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::sendUnbindRespWaiting → NO_COVERAGE |
return this; |
| 837 | } | |
| 838 | ||
| 839 | public ServerDelays build() { | |
| 840 | ServerDelays delays = new ServerDelays(); | |
| 841 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendAlertNotification.apply(delays); |
| 842 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendBind.apply(delays); |
| 843 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → KILLED |
sendBindResp.apply(delays); |
| 844 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendCancelSm.apply(delays); |
| 845 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendCancelSmResp.apply(delays); |
| 846 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE |
sendDataSm.apply(delays); |
| 847 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE |
sendDataSmResp.apply(delays); |
| 848 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendDeliverSm.apply(delays); |
| 849 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendDeliverSmResp.apply(delays); |
| 850 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendEnquireLink.apply(delays); |
| 851 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → KILLED |
sendEnquireLinkResp.apply(delays); |
| 852 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendGenericNack.apply(delays); |
| 853 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendHeader.apply(delays); |
| 854 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendOutbind.apply(delays); |
| 855 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendQuerySm.apply(delays); |
| 856 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE |
sendQuerySmResp.apply(delays); |
| 857 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendReplaceSm.apply(delays); |
| 858 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendReplaceSmResp.apply(delays); |
| 859 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendSubmitMulti.apply(delays); |
| 860 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendSubmitMultiResp.apply(delays); |
| 861 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED |
sendSubmitSm.apply(delays); |
| 862 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → KILLED |
sendSubmitSmResp.apply(delays); |
| 863 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE |
sendUnbind.apply(delays); |
| 864 |
3
1. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 2. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → SURVIVED 3. build : removed call to fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig$WaitingConfHelper::apply → NO_COVERAGE |
sendUnbindResp.apply(delays); |
| 865 |
3
1. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::build → NO_COVERAGE 2. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::build → KILLED 3. build : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::build → KILLED |
return delays; |
| 866 | } | |
| 867 | ||
| 868 | public static Awaiter waitFor(long delay) { | |
| 869 |
3
1. waitFor : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::waitFor → NO_COVERAGE 2. waitFor : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::waitFor → KILLED 3. waitFor : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::waitFor → KILLED |
return () -> { |
| 870 | LOG.debug("Waiting for {}ms...", delay); | |
| 871 |
3
1. lambda$waitFor$1 : Replaced long addition with subtraction → NO_COVERAGE 2. lambda$waitFor$1 : Replaced long addition with subtraction → KILLED 3. lambda$waitFor$1 : Replaced long addition with subtraction → KILLED |
final long end = System.currentTimeMillis() + delay; |
| 872 |
15
1. lambda$null$0 : replaced Boolean return with False for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::lambda$null$0 → SURVIVED 2. lambda$null$0 : replaced Boolean return with False for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::lambda$null$0 → NO_COVERAGE 3. lambda$null$0 : replaced Boolean return with False for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::lambda$null$0 → SURVIVED 4. lambda$null$0 : replaced Boolean return with True for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::lambda$null$0 → NO_COVERAGE 5. lambda$null$0 : changed conditional boundary → SURVIVED 6. lambda$null$0 : changed conditional boundary → NO_COVERAGE 7. lambda$null$0 : changed conditional boundary → SURVIVED 8. lambda$null$0 : negated conditional → NO_COVERAGE 9. lambda$waitFor$1 : removed call to org/awaitility/core/ConditionFactory::until → NO_COVERAGE 10. lambda$null$0 : replaced Boolean return with True for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::lambda$null$0 → KILLED 11. lambda$null$0 : replaced Boolean return with True for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::lambda$null$0 → KILLED 12. lambda$null$0 : negated conditional → KILLED 13. lambda$null$0 : negated conditional → KILLED 14. lambda$waitFor$1 : removed call to org/awaitility/core/ConditionFactory::until → KILLED 15. lambda$waitFor$1 : removed call to org/awaitility/core/ConditionFactory::until → KILLED |
await().until(() -> System.currentTimeMillis() >= end); |
| 873 | }; | |
| 874 | } | |
| 875 | ||
| 876 | public static Awaiter noWait() { | |
| 877 |
3
1. noWait : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::noWait → SURVIVED 2. noWait : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::noWait → SURVIVED 3. noWait : replaced return value with null for fr/sii/ogham/testing/extension/junit/sms/config/SlowConfig::noWait → NO_COVERAGE |
return () -> {}; |
| 878 | } | |
| 879 | ||
| 880 | private static class WaitingConfHelper { | |
| 881 | private final BiConsumer<ServerDelays, Awaiter> setter; | |
| 882 | private Long delay; | |
| 883 | private Awaiter waiting; | |
| 884 | ||
| 885 | public WaitingConfHelper(BiConsumer<ServerDelays, Awaiter> setter) { | |
| 886 | super(); | |
| 887 | this.setter = setter; | |
| 888 | } | |
| 889 | ||
| 890 | public void setDelay(Long delay) { | |
| 891 | this.delay = delay; | |
| 892 | } | |
| 893 | ||
| 894 | public void setWaiting(Awaiter waiting) { | |
| 895 | this.waiting = waiting; | |
| 896 | } | |
| 897 | ||
| 898 | public void apply(ServerDelays delays) { | |
| 899 |
2
1. apply : negated conditional → SURVIVED 2. apply : negated conditional → NO_COVERAGE |
if (waiting != null) { |
| 900 |
1
1. apply : removed call to java/util/function/BiConsumer::accept → NO_COVERAGE |
setter.accept(delays, waiting); |
| 901 | } | |
| 902 |
9
1. apply : negated conditional → NO_COVERAGE 2. apply : negated conditional → NO_COVERAGE 3. apply : removed call to java/util/function/BiConsumer::accept → NO_COVERAGE 4. apply : negated conditional → KILLED 5. apply : negated conditional → KILLED 6. apply : negated conditional → KILLED 7. apply : negated conditional → KILLED 8. apply : removed call to java/util/function/BiConsumer::accept → KILLED 9. apply : removed call to java/util/function/BiConsumer::accept → KILLED |
setter.accept(delays, delay == null || delay == 0 ? noWait() : waitFor(delay)); |
| 903 | } | |
| 904 | } | |
| 905 | } | |
Mutations | ||
| 82 |
1.1 |
|
| 83 |
1.1 |
|
| 99 |
1.1 |
|
| 100 |
1.1 |
|
| 115 |
1.1 |
|
| 116 |
1.1 |
|
| 131 |
1.1 |
|
| 132 |
1.1 |
|
| 147 |
1.1 2.2 |
|
| 148 |
1.1 2.2 |
|
| 163 |
1.1 |
|
| 164 |
1.1 |
|
| 179 |
1.1 |
|
| 180 |
1.1 |
|
| 195 |
1.1 |
|
| 196 |
1.1 |
|
| 211 |
1.1 |
|
| 212 |
1.1 |
|
| 227 |
1.1 |
|
| 228 |
1.1 |
|
| 243 |
1.1 |
|
| 244 |
1.1 |
|
| 259 |
1.1 |
|
| 260 |
1.1 |
|
| 275 |
1.1 |
|
| 276 |
1.1 |
|
| 291 |
1.1 |
|
| 292 |
1.1 |
|
| 307 |
1.1 |
|
| 308 |
1.1 |
|
| 323 |
1.1 |
|
| 324 |
1.1 |
|
| 339 |
1.1 |
|
| 340 |
1.1 |
|
| 355 |
1.1 |
|
| 356 |
1.1 |
|
| 371 |
1.1 |
|
| 372 |
1.1 |
|
| 387 |
1.1 |
|
| 388 |
1.1 |
|
| 403 |
1.1 2.2 |
|
| 404 |
1.1 2.2 |
|
| 419 |
1.1 |
|
| 420 |
1.1 |
|
| 435 |
1.1 |
|
| 436 |
1.1 |
|
| 451 |
1.1 |
|
| 452 |
1.1 |
|
| 467 |
1.1 |
|
| 468 |
1.1 |
|
| 483 |
1.1 |
|
| 484 |
1.1 |
|
| 499 |
1.1 |
|
| 500 |
1.1 |
|
| 515 |
1.1 |
|
| 516 |
1.1 |
|
| 531 |
1.1 |
|
| 532 |
1.1 |
|
| 547 |
1.1 |
|
| 548 |
1.1 |
|
| 563 |
1.1 |
|
| 564 |
1.1 |
|
| 579 |
1.1 |
|
| 580 |
1.1 |
|
| 595 |
1.1 |
|
| 596 |
1.1 |
|
| 611 |
1.1 |
|
| 612 |
1.1 |
|
| 627 |
1.1 |
|
| 628 |
1.1 |
|
| 643 |
1.1 |
|
| 644 |
1.1 |
|
| 659 |
1.1 |
|
| 660 |
1.1 |
|
| 675 |
1.1 |
|
| 676 |
1.1 |
|
| 691 |
1.1 |
|
| 692 |
1.1 |
|
| 707 |
1.1 |
|
| 708 |
1.1 |
|
| 723 |
1.1 |
|
| 724 |
1.1 |
|
| 739 |
1.1 |
|
| 740 |
1.1 |
|
| 755 |
1.1 2.2 |
|
| 756 |
1.1 2.2 |
|
| 771 |
1.1 |
|
| 772 |
1.1 |
|
| 787 |
1.1 |
|
| 788 |
1.1 |
|
| 803 |
1.1 |
|
| 804 |
1.1 |
|
| 819 |
1.1 |
|
| 820 |
1.1 |
|
| 835 |
1.1 |
|
| 836 |
1.1 |
|
| 841 |
1.1 2.2 3.3 |
|
| 842 |
1.1 2.2 3.3 |
|
| 843 |
1.1 2.2 3.3 |
|
| 844 |
1.1 2.2 3.3 |
|
| 845 |
1.1 2.2 3.3 |
|
| 846 |
1.1 2.2 3.3 |
|
| 847 |
1.1 2.2 3.3 |
|
| 848 |
1.1 2.2 3.3 |
|
| 849 |
1.1 2.2 3.3 |
|
| 850 |
1.1 2.2 3.3 |
|
| 851 |
1.1 2.2 3.3 |
|
| 852 |
1.1 2.2 3.3 |
|
| 853 |
1.1 2.2 3.3 |
|
| 854 |
1.1 2.2 3.3 |
|
| 855 |
1.1 2.2 3.3 |
|
| 856 |
1.1 2.2 3.3 |
|
| 857 |
1.1 2.2 3.3 |
|
| 858 |
1.1 2.2 3.3 |
|
| 859 |
1.1 2.2 3.3 |
|
| 860 |
1.1 2.2 3.3 |
|
| 861 |
1.1 2.2 3.3 |
|
| 862 |
1.1 2.2 3.3 |
|
| 863 |
1.1 2.2 3.3 |
|
| 864 |
1.1 2.2 3.3 |
|
| 865 |
1.1 2.2 3.3 |
|
| 869 |
1.1 2.2 3.3 |
|
| 871 |
1.1 2.2 3.3 |
|
| 872 |
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 15.15 |
|
| 877 |
1.1 2.2 3.3 |
|
| 899 |
1.1 2.2 |
|
| 900 |
1.1 |
|
| 902 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 |