use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class OrganizationsWsModuleTest method verify_component_count.
@Test
public void verify_component_count() {
ComponentContainer container = new ComponentContainer();
underTest.configure(container);
assertThat(container.getPicoContainer().getComponentAdapters()).hasSize(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 8);
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class PermissionsWsModuleTest method verify_count_of_added_components.
@Test
public void verify_count_of_added_components() {
ComponentContainer container = new ComponentContainer();
new PermissionsWsModule().configure(container);
assertThat(container.size()).isEqualTo(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 27);
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class RequestIdFilterTest method filter_does_not_fail_when_there_is_no_RequestIdGenerator_in_container.
@Test
public void filter_does_not_fail_when_there_is_no_RequestIdGenerator_in_container() throws IOException, ServletException {
Platform platform = mock(Platform.class);
when(platform.getContainer()).thenReturn(new ComponentContainer());
RequestIdFilter underTest = new RequestIdFilter(platform);
underTest.doFilter(servletRequest, servletResponse, filterChain);
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class ProjectsWsModuleTest method verify_count_of_added_components.
@Test
public void verify_count_of_added_components() {
ComponentContainer container = new ComponentContainer();
new ProjectsWsModule().configure(container);
assertThat(container.size()).isEqualTo(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 13);
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class HttpRequestIdModuleTest method count_components_in_module.
@Test
public void count_components_in_module() {
ComponentContainer container = new ComponentContainer();
underTest.configure(container);
assertThat(container.getPicoContainer().getComponentAdapters()).hasSize(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 3);
}
Aggregations