use of org.sonar.db.qualitygate.QualityGateDto in project sonarqube by SonarSource.
the class ComponentActionTest method return_quality_gate_defined_on_project.
@Test
public void return_quality_gate_defined_on_project() throws Exception {
init();
componentDbTester.insertComponent(project);
QualityGateDto qualityGateDto = dbTester.qualityGates().insertQualityGate("Sonar way");
dbTester.qualityGates().associateProjectToQualityGate(project, qualityGateDto);
userSession.addProjectUuidPermissions(UserRole.USER, project.uuid());
executeAndVerify(project.key(), "return_quality_gate.json");
}
Aggregations