use of org.sonar.scanner.rule.QualityProfiles in project sonarqube by SonarSource.
the class QualityProfileProviderTest method testProvide.
@Test
public void testProvide() {
when(loader.load("project")).thenReturn(response);
QualityProfiles qps = qualityProfileProvider.provide(loader, props);
assertResponse(qps);
verify(loader).load("project");
verifyNoMoreInteractions(loader);
}
use of org.sonar.scanner.rule.QualityProfiles in project sonarqube by SonarSource.
the class QualityProfilesProvider method provide.
@Bean("QualityProfiles")
public QualityProfiles provide(QualityProfileLoader loader, ScannerProperties props) {
Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
QualityProfiles profiles = new QualityProfiles(loader.load(props.getProjectKey()));
profiler.stopInfo();
return profiles;
}
use of org.sonar.scanner.rule.QualityProfiles in project sonarqube by SonarSource.
the class QualityProfileProviderTest method testProfileProp.
@Test
public void testProfileProp() {
when(loader.load("project")).thenReturn(response);
QualityProfiles qps = qualityProfileProvider.provide(loader, props);
assertResponse(qps);
verify(loader).load("project");
verifyNoMoreInteractions(loader);
}
Aggregations