[WLGitBridgeIntegrationTest] ensure that we stop the started servers

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
Jakob Ackermann
2019-04-26 23:33:12 +02:00
parent 1da276fe2b
commit 5040b4d7f0
2 changed files with 77 additions and 93 deletions

View File

@@ -47,6 +47,14 @@ public class MockSnapshotServer {
port = ((NetworkConnector) server.getConnectors()[0]).getLocalPort();
}
public void stop() {
try {
server.stop();
} catch (Exception e) {
Log.warn("Exception when trying to stop server", e);
}
}
public void setState(SnapshotAPIState state) {
responseBuilder.setState(state);
}