Searched refs:mockServlet (Results 1 – 2 of 2) sorted by relevance
55 final HttpServlet mockServlet = new HttpServlet() {}; in testServletInitAndConfig() local56 expect(injector.getInstance(Key.get(HttpServlet.class))).andReturn(mockServlet).anyTimes(); in testServletInitAndConfig()84 assertNotNull(mockServlet.getServletContext()); in testServletInitAndConfig()85 assertEquals(contextName, mockServlet.getServletContext().getServletContextName()); in testServletInitAndConfig()86 assertEquals(Key.get(HttpServlet.class).toString(), mockServlet.getServletName()); in testServletInitAndConfig()88 final ServletConfig servletConfig = mockServlet.getServletConfig(); in testServletInitAndConfig()
80 final HttpServlet mockServlet = in testIncludeManagedServlet() local95 expect(injector.getInstance(HTTP_SERLVET_KEY)).andReturn(mockServlet); in testIncludeManagedServlet()146 final HttpServlet mockServlet = in testForwardToManagedServlet() local162 expect(injector.getInstance(HTTP_SERLVET_KEY)).andReturn(mockServlet); in testForwardToManagedServlet()217 final HttpServlet mockServlet = in forwardToManagedServletFailureOnCommittedBuffer() local232 expect(injector.getInstance(Key.get(HttpServlet.class))).andReturn(mockServlet); in forwardToManagedServletFailureOnCommittedBuffer()