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);
}
Aggregations