@Test public void testIfClasspathScanningIsEnabled() { when(context.getInitParameter(BasicConfiguration.SCANNING_PARAM)).thenReturn(null, "disabled"); assertThat(config.isClasspathScanningEnabled(), is(true)); assertThat(config.isClasspathScanningEnabled(), is(false)); }
public boolean isClasspathScanningEnabled() { String scanningParam = servletContext.getInitParameter(SCANNING_PARAM); logger.info("{} = {}", SCANNING_PARAM, servletContext.getInitParameter(SCANNING_PARAM)); return scanningParam == null || !scanningParam.trim().equals("disabled"); }
BasicConfiguration { public boolean isClasspathScanningEnabled() { String scanningParam = servletContext.getInitParameter(SCANNING_PARAM); logger.info("{} = {}", SCANNING_PARAM, servletContext.getInitParameter(SCANNING_PARAM)); return scanningParam == null || !scanningParam.trim().equals("disabled"); } }
BasicConfiguration { public boolean isClasspathScanningEnabled() { String scanningParam = servletContext.getInitParameter(SCANNING_PARAM); logger.info("{} = {}", SCANNING_PARAM, servletContext.getInitParameter(SCANNING_PARAM)); return scanningParam == null || !scanningParam.trim().equals("disabled"); } BasicConfiguration(ServletContext servletContext); }
BasicConfiguration { public boolean isClasspathScanningEnabled() { String scanningParam = servletContext.getInitParameter(SCANNING_PARAM); logger.info("{} = {}", SCANNING_PARAM, servletContext.getInitParameter(SCANNING_PARAM)); return scanningParam == null || !scanningParam.trim().equals("disabled"); } BasicConfiguration(ServletContext servletContext); ContainerProvider getProvider(); boolean hasBasePackages(); String[] getBasePackages(); String getEncoding(); String getWebinfClassesDirectory(); ServletContext getServletContext(); boolean isClasspathScanningEnabled(); }
BasicConfiguration { public boolean isClasspathScanningEnabled() { String scanningParam = servletContext.getInitParameter(SCANNING_PARAM); logger.info("{} = {}", SCANNING_PARAM, servletContext.getInitParameter(SCANNING_PARAM)); return scanningParam == null || !scanningParam.trim().equals("disabled"); } 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; }