public HTTPContext add(Servlet servlet) { servlet.setParent(this); this.servlets.add(servlet); return this; }
public HTTPContext add(Servlet servlet) { servlet.setParent(this); this.servlets.add(servlet); return this; }
@BeforeClass public static void before() { servlet = new Servlet(TEST_SERVLET_NAME, TEST_CONTEXT_ROOT); servletWithParent = new Servlet(TEST_SERVLET_NAME, TEST_CONTEXT_ROOT); servletWithParent.setParent(TEST_HTTP_CONTEXT); rootContextServletWithParent = new Servlet(TEST_SERVLET_NAME, Servlet.ROOT_CONTEXT); rootContextServletWithParent.setParent(TEST_HTTP_CONTEXT); }
@BeforeClass public static void before() { servlet = new Servlet(TEST_SERVLET_NAME, TEST_CONTEXT_ROOT); servletWithParent = new Servlet(TEST_SERVLET_NAME, TEST_CONTEXT_ROOT); servletWithParent.setParent(TEST_HTTP_CONTEXT); rootContextServletWithParent = new Servlet(TEST_SERVLET_NAME, Servlet.ROOT_CONTEXT); rootContextServletWithParent.setParent(TEST_HTTP_CONTEXT); }