cleanup logs for Travis

This commit is contained in:
Benjamin Gamard 2017-11-18 20:14:50 +01:00
parent b3dc409926
commit 66f781b716
2 changed files with 10 additions and 9 deletions

View File

@ -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();
}
}
}

View File

@ -6,5 +6,6 @@ log4j.appender.MEMORY=com.sismics.util.log4j.MemoryAppender
log4j.appender.MEMORY.size=1000
log4j.logger.com.sismics=INFO
log4j.logger.org.hibernate=INFO
log4j.logger.org.apache.pdfbox=INFO
log4j.logger.com.sismics.util.jpa=ERROR
log4j.logger.org.hibernate=ERROR
log4j.logger.org.apache.pdfbox=INFO