use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class QualityGateModuleTest method verify_count_of_added_components.
@Test
public void verify_count_of_added_components() {
ComponentContainer container = new ComponentContainer();
new QualityGateModule().configure(container);
assertThat(container.size()).isEqualTo(23 + 2);
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class RootsWsModuleTest method verify_number_of_components_added_by_module.
@Test
public void verify_number_of_components_added_by_module() {
ComponentContainer container = new ComponentContainer();
underTest.configure(container);
assertThat(container.getPicoContainer().getComponentAdapters()).hasSize(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 4);
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class ComputeEngineContainerImpl method start.
@Override
public ComputeEngineContainer start(Props props) {
this.level1 = new ComponentContainer();
this.level1.add(props.rawProperties()).add(level1Components()).add(toArray(CorePropertyDefinitions.all()));
configureFromModules(this.level1);
this.level1.startComponents();
ComponentContainer level2 = this.level1.createChild();
level2.add(level2Components());
configureFromModules(level2);
level2.startComponents();
ComponentContainer level3 = level2.createChild();
level3.add(level3Components());
configureFromModules(level3);
level3.startComponents();
this.level4 = level3.createChild();
this.level4.add(level4Components());
configureFromModules(this.level4);
ServerExtensionInstaller extensionInstaller = this.level4.getComponentByType(ServerExtensionInstaller.class);
extensionInstaller.installExtensions(this.level4);
this.level4.startComponents();
startupTasks();
return this;
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class DaoModuleTest method verify_count_of_added_components.
@Test
public void verify_count_of_added_components() {
ComponentContainer container = new ComponentContainer();
new DaoModule().configure(container);
assertThat(container.size()).isEqualTo(2 + 45);
}
use of org.sonar.core.platform.ComponentContainer in project sonarqube by SonarSource.
the class MigrationConfigurationModuleTest 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 + // DbVersion classes
7 + // Others
3);
}
Aggregations