| 1 | package fr.sii.ogham.testing.sms.simulator.config; | |
| 2 | ||
| 3 | /** | |
| 4 | * Provider that simply provides a fixed port. | |
| 5 | * | |
| 6 | * @author Aurélien Baudet | |
| 7 | * | |
| 8 | */ | |
| 9 | public class FixedServerPortProvider implements ServerPortProvider { | |
| 10 | private final int port; | |
| 11 | ||
| 12 | /** | |
| 13 | * Initialize with the provided port. | |
| 14 | * | |
| 15 | * @param port | |
| 16 | * the port to use | |
| 17 | */ | |
| 18 | public FixedServerPortProvider(int port) { | |
| 19 | super(); | |
| 20 | this.port = port; | |
| 21 | } | |
| 22 | ||
| 23 | @Override | |
| 24 | public int getPort() { | |
| 25 |
3
1. getPort : replaced int return with 0 for fr/sii/ogham/testing/sms/simulator/config/FixedServerPortProvider::getPort → NO_COVERAGE 2. getPort : replaced int return with 0 for fr/sii/ogham/testing/sms/simulator/config/FixedServerPortProvider::getPort → TIMED_OUT 3. getPort : replaced int return with 0 for fr/sii/ogham/testing/sms/simulator/config/FixedServerPortProvider::getPort → KILLED |
return port; |
| 26 | } | |
| 27 | ||
| 28 | @Override | |
| 29 | public void reset() { | |
| 30 | // nothing to do | |
| 31 | } | |
| 32 | ||
| 33 | } | |
Mutations | ||
| 25 |
1.1 2.2 3.3 |