Search in sources :

Example 6 with ScannerProperties

use of org.sonar.scanner.bootstrap.ScannerProperties in project sonarqube by SonarSource.

the class ProjectReactorBuilderTest method loadProjectDefinition.

private ProjectDefinition loadProjectDefinition(String projectFolder) {
    Map<String, String> props = loadProps(projectFolder);
    ScannerProperties bootstrapProps = new ScannerProperties(props);
    ProjectReactor projectReactor = new ProjectReactorBuilder(bootstrapProps, mock(AnalysisWarnings.class)).execute();
    return projectReactor.getRoot();
}
Also used : ScannerProperties(org.sonar.scanner.bootstrap.ScannerProperties) ProjectReactor(org.sonar.api.batch.bootstrap.ProjectReactor)

Aggregations

ScannerProperties (org.sonar.scanner.bootstrap.ScannerProperties)6 Test (org.junit.Test)4 File (java.io.File)3 AnalysisWarnings (org.sonar.api.notifications.AnalysisWarnings)3 HashMap (java.util.HashMap)2 CiConfiguration (org.sonar.scanner.ci.CiConfiguration)2 InputModuleHierarchy (org.sonar.scanner.fs.InputModuleHierarchy)2 ProjectReactor (org.sonar.api.batch.bootstrap.ProjectReactor)1