assertThat(measuresDao.getMetric(CoreMetrics.COMPLEXITY).getEnabled()).isTrue();
}
@Test
public void clean_quality_gate_conditions() {
QualityGateConditionDao conditionDao = mock(QualityGateConditionDao.class);
RegisterMetrics loader = new RegisterMetrics(new MeasuresDao(getSession()), conditionDao, new Metrics[0]);
loader.cleanAlerts();
verify(conditionDao).deleteConditionsWithInvalidMetrics();
}