mirror of
https://github.com/sismics/docs.git
synced 2025-12-12 17:26:13 +00:00
cleanup logs for Travis
This commit is contained in:
@@ -77,10 +77,6 @@ public abstract class BaseJerseyTest extends JerseyTest {
|
||||
|
||||
clientUtil = new ClientUtil(target());
|
||||
|
||||
wiser = new Wiser();
|
||||
wiser.setPort(2500);
|
||||
wiser.start();
|
||||
|
||||
httpServer = HttpServer.createSimpleServer(getClass().getResource("/").getFile(), "localhost", getPort());
|
||||
WebappContext context = new WebappContext("GrizzlyContext", "/docs");
|
||||
context.addFilter("requestContextFilter", RequestContextFilter.class)
|
||||
@@ -98,6 +94,10 @@ public abstract class BaseJerseyTest extends JerseyTest {
|
||||
reg.setAsyncSupported(true);
|
||||
context.deploy(httpServer);
|
||||
httpServer.start();
|
||||
|
||||
wiser = new Wiser();
|
||||
wiser.setPort(2500);
|
||||
wiser.start();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -124,11 +124,11 @@ public abstract class BaseJerseyTest extends JerseyTest {
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
super.tearDown();
|
||||
if (httpServer != null) {
|
||||
httpServer.shutdownNow();
|
||||
}
|
||||
if (wiser != null) {
|
||||
wiser.stop();
|
||||
}
|
||||
if (httpServer != null) {
|
||||
httpServer.shutdownNow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user