use of org.sonar.db.component.ComponentDbTester in project sonarqube by SonarSource.
the class PurgeDaoTest method deleteNonRootComponents_has_no_effect_when_parameter_contains_only_projects_and_or_views.
@Test
public void deleteNonRootComponents_has_no_effect_when_parameter_contains_only_projects_and_or_views() {
ComponentDbTester componentDbTester = db.components();
verifyNoEffect(componentDbTester.insertPrivateProject());
verifyNoEffect(componentDbTester.insertPublicProject());
verifyNoEffect(componentDbTester.insertPrivatePortfolio());
verifyNoEffect(componentDbTester.insertPrivatePortfolio(), componentDbTester.insertPrivateProject(), componentDbTester.insertPublicProject());
}
Aggregations