Search in sources :

Example 1 with ClassMatcher

use of org.eclipse.jetty.webapp.ClassMatcher in project spring-boot by spring-projects.

the class JettyServletWebServerFactoryTests method mockConfiguration.

Configuration mockConfiguration(Class<? extends Configuration> type) {
    Configuration mock = mock(type);
    ClassMatcher classMatcher = new ClassMatcher();
    given(mock.getSystemClasses()).willReturn(classMatcher);
    given(mock.getServerClasses()).willReturn(classMatcher);
    return mock;
}
Also used : ClassMatcher(org.eclipse.jetty.webapp.ClassMatcher) AbstractConfiguration(org.eclipse.jetty.webapp.AbstractConfiguration) Configuration(org.eclipse.jetty.webapp.Configuration)

Aggregations

AbstractConfiguration (org.eclipse.jetty.webapp.AbstractConfiguration)1 ClassMatcher (org.eclipse.jetty.webapp.ClassMatcher)1 Configuration (org.eclipse.jetty.webapp.Configuration)1