Skip to content

Commit

Permalink
Stop servers after executing the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Naduni Pamudika committed Jan 23, 2024
1 parent adec96f commit 3889c2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ public static Object[][] userModeDataProvider() {

@AfterClass(alwaysRun = true)
public void destroy() throws Exception {
if (wireMockServer != null) {
wireMockServer.stop();
}
restAPIPublisher.deleteAPI(newSoapToRestAPIId);
userManagementClient.deleteRole(SOAPTOREST_ROLE);
userManagementClient.deleteUser(SOAPTOREST_TEST_USER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ private void waitForReply(WebSocketClientImpl clientSocket) {

@AfterClass(alwaysRun = true)
public void destroy() throws Exception {
if (server != null) {
server.stop();
}
executorService.shutdownNow();
serverConfigurationManager.restoreToLastConfiguration();
}
Expand Down

0 comments on commit 3889c2a

Please sign in to comment.