Search in sources :

Example 1 with ProjectLock

use of org.sonar.scanner.scan.ProjectLock in project sonarqube by SonarSource.

the class ProjectLockTest method setUpTest.

private ProjectLock setUpTest(File file) {
    ProjectReactor projectReactor = mock(ProjectReactor.class);
    ProjectDefinition projectDefinition = mock(ProjectDefinition.class);
    when(projectReactor.getRoot()).thenReturn(projectDefinition);
    when(projectDefinition.getWorkDir()).thenReturn(file);
    return new ProjectLock(projectReactor);
}
Also used : ProjectLock(org.sonar.scanner.scan.ProjectLock) ProjectReactor(org.sonar.api.batch.bootstrap.ProjectReactor) ProjectDefinition(org.sonar.api.batch.bootstrap.ProjectDefinition)

Aggregations

ProjectDefinition (org.sonar.api.batch.bootstrap.ProjectDefinition)1 ProjectReactor (org.sonar.api.batch.bootstrap.ProjectReactor)1 ProjectLock (org.sonar.scanner.scan.ProjectLock)1