Search in sources :

Example 1 with ComponentDbTester

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());
}
Also used : ComponentDbTester(org.sonar.db.component.ComponentDbTester) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ComponentDbTester (org.sonar.db.component.ComponentDbTester)1