use of org.sonar.server.platform.web.RegisterServletFilters in project sonarqube by SonarSource.
the class RegisterServletFiltersTest method should_not_fail_if_master_filter_is_not_up.
@Test
public void should_not_fail_if_master_filter_is_not_up() throws ServletException {
MasterServletFilter.INSTANCE = null;
new RegisterServletFilters(new ServletFilter[2]).start();
}
use of org.sonar.server.platform.web.RegisterServletFilters in project sonarqube by SonarSource.
the class RegisterServletFiltersTest method filters_should_be_optional.
@Test
public void filters_should_be_optional() throws ServletException {
MasterServletFilter.INSTANCE = mock(MasterServletFilter.class);
new RegisterServletFilters().start();
// do not fail
verify(MasterServletFilter.INSTANCE).initFilters(anyListOf(ServletFilter.class));
}
use of org.sonar.server.platform.web.RegisterServletFilters in project sonarqube by SonarSource.
the class RegisterServletFiltersTest method should_register_filters_if_master_filter_is_up.
@Test
public void should_register_filters_if_master_filter_is_up() throws ServletException {
MasterServletFilter.INSTANCE = mock(MasterServletFilter.class);
new RegisterServletFilters(new ServletFilter[2]).start();
verify(MasterServletFilter.INSTANCE).initFilters(anyListOf(ServletFilter.class));
}
Aggregations