|
@@ -61,6 +61,7 @@ import org.junit.Test;
|
|
import org.mockito.Mockito;
|
|
import org.mockito.Mockito;
|
|
|
|
|
|
public class TestHttpServer extends HttpServerFunctionalTest {
|
|
public class TestHttpServer extends HttpServerFunctionalTest {
|
|
|
|
+ static final Log LOG = LogFactory.getLog(TestHttpServer.class);
|
|
private static HttpServer server;
|
|
private static HttpServer server;
|
|
private static URL baseUrl;
|
|
private static URL baseUrl;
|
|
private static final int MAX_THREADS = 10;
|
|
private static final int MAX_THREADS = 10;
|
|
@@ -136,6 +137,7 @@ public class TestHttpServer extends HttpServerFunctionalTest {
|
|
server.addServlet("htmlcontent", "/htmlcontent", HtmlContentServlet.class);
|
|
server.addServlet("htmlcontent", "/htmlcontent", HtmlContentServlet.class);
|
|
server.start();
|
|
server.start();
|
|
baseUrl = getServerURL(server);
|
|
baseUrl = getServerURL(server);
|
|
|
|
+ LOG.info("HTTP server started: "+ baseUrl);
|
|
}
|
|
}
|
|
|
|
|
|
@AfterClass public static void cleanup() throws Exception {
|
|
@AfterClass public static void cleanup() throws Exception {
|
|
@@ -233,9 +235,6 @@ public class TestHttpServer extends HttpServerFunctionalTest {
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
public static class DummyServletFilter implements Filter {
|
|
public static class DummyServletFilter implements Filter {
|
|
-
|
|
|
|
- private static final Log LOG = LogFactory.getLog(
|
|
|
|
- DummyServletFilter.class);
|
|
|
|
@Override
|
|
@Override
|
|
public void destroy() { }
|
|
public void destroy() { }
|
|
|
|
|