@SuppressWarnings("unchecked") @Test public void testGetResourcePaths() { Set<URL> urls = createMock(Set.class); expect(servletContext.getResourcePaths("whatever")).andReturn(urls); replay(servletContext, config, urls); ServletContextAdapter adapter = new ServletContextAdapter(config); assertEquals(urls, adapter.getResourcePaths("whatever")); verify(urls); }
@SuppressWarnings({ "rawtypes" }) public Set getResourcePaths(String string) { return rootContext.getResourcePaths(string); }
ServletContextAdapter implements ServletContext { @SuppressWarnings({ "rawtypes" }) public Set getResourcePaths(String string) { return rootContext.getResourcePaths(string); } }
ServletContextAdapter implements ServletContext { @SuppressWarnings({ "rawtypes" }) public Set getResourcePaths(String string) { return rootContext.getResourcePaths(string); } @SuppressWarnings("unchecked")  ServletContextAdapter(ServletConfig config); }
ServletContextAdapter implements ServletContext { @SuppressWarnings({ "rawtypes" }) public Set getResourcePaths(String string) { return rootContext.getResourcePaths(string); } @SuppressWarnings("unchecked")  ServletContextAdapter(ServletConfig config); ServletContext getContext(String string); int getMajorVersion(); int getMinorVersion(); String getMimeType(String string); @SuppressWarnings({ "rawtypes" }) Set getResourcePaths(String string); URL getResource(String string); InputStream getResourceAsStream(String string); RequestDispatcher getRequestDispatcher(String string); RequestDispatcher getNamedDispatcher(String string); Servlet getServlet(String string); @SuppressWarnings("rawtypes") Enumeration getServlets(); @SuppressWarnings("rawtypes") Enumeration getServletNames(); void log(String string); void log(Exception exception, String string); void log(String string, Throwable throwable); String getRealPath(String string); String getServerInfo(); String getInitParameter(String string); @SuppressWarnings("rawtypes") Enumeration getInitParameterNames(); Object getAttribute(String string); @SuppressWarnings("rawtypes") Enumeration getAttributeNames(); void setAttribute(String string, Object object); void removeAttribute(String string); String getServletContextName(); String getContextPath(); }
ServletContextAdapter implements ServletContext { @SuppressWarnings({ "rawtypes" }) public Set getResourcePaths(String string) { return rootContext.getResourcePaths(string); } @SuppressWarnings("unchecked")  ServletContextAdapter(ServletConfig config); ServletContext getContext(String string); int getMajorVersion(); int getMinorVersion(); String getMimeType(String string); @SuppressWarnings({ "rawtypes" }) Set getResourcePaths(String string); URL getResource(String string); InputStream getResourceAsStream(String string); RequestDispatcher getRequestDispatcher(String string); RequestDispatcher getNamedDispatcher(String string); Servlet getServlet(String string); @SuppressWarnings("rawtypes") Enumeration getServlets(); @SuppressWarnings("rawtypes") Enumeration getServletNames(); void log(String string); void log(Exception exception, String string); void log(String string, Throwable throwable); String getRealPath(String string); String getServerInfo(); String getInitParameter(String string); @SuppressWarnings("rawtypes") Enumeration getInitParameterNames(); Object getAttribute(String string); @SuppressWarnings("rawtypes") Enumeration getAttributeNames(); void setAttribute(String string, Object object); void removeAttribute(String string); String getServletContextName(); String getContextPath();  }