@Test public void shouldReadRootDirectoryAsWebinfClasses() throws ServletException { when(context.getRealPath("/WEB-INF/classes/")).thenReturn("/x/WEB-INF/classes/"); assertThat(config.getWebinfClassesDirectory(), is("/x/WEB-INF/classes/")); }
public String getWebinfClassesDirectory() { return servletContext.getRealPath("/WEB-INF/classes/"); }
BasicConfiguration { public String getWebinfClassesDirectory() { return servletContext.getRealPath("/WEB-INF/classes/"); } }
BasicConfiguration { public String getWebinfClassesDirectory() { return servletContext.getRealPath("/WEB-INF/classes/"); } BasicConfiguration(ServletContext servletContext); }
BasicConfiguration { public String getWebinfClassesDirectory() { return servletContext.getRealPath("/WEB-INF/classes/"); } BasicConfiguration(ServletContext servletContext); ContainerProvider getProvider(); boolean hasBasePackages(); String[] getBasePackages(); String getEncoding(); String getWebinfClassesDirectory(); ServletContext getServletContext(); boolean isClasspathScanningEnabled(); }
BasicConfiguration { public String getWebinfClassesDirectory() { return servletContext.getRealPath("/WEB-INF/classes/"); } BasicConfiguration(ServletContext servletContext); ContainerProvider getProvider(); boolean hasBasePackages(); String[] getBasePackages(); String getEncoding(); String getWebinfClassesDirectory(); ServletContext getServletContext(); boolean isClasspathScanningEnabled(); static final String CONTAINER_PROVIDER; static final String ENCODING; static final String BASE_PACKAGES_PARAMETER_NAME; static final String SCANNING_PARAM; }