use of org.sonar.server.tester.ServerTester in project sonarqube by SonarSource.
the class RegisterQualityProfilesMediumTest method do_not_register_profile_if_missing_language.
@Test
public void do_not_register_profile_if_missing_language() {
// xoo language is not installed
tester = new ServerTester().withEsIndexes().addComponents(XooRulesDefinition.class, XooProfileDefinition.class);
tester.start();
dbSession = dbClient().openSession(false);
// Check Profile in DB
QualityProfileDao qualityProfileDao = dbClient().qualityProfileDao();
assertThat(qualityProfileDao.selectAll(dbSession)).hasSize(0);
}
Aggregations