Search in sources :

Example 1 with StatusDetectionFactory

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

the class StatusDetectionFactoryTest method testCreate.

@Test
public void testCreate() throws Exception {
    StatusDetectionFactory factory = new StatusDetectionFactory(mock(ProjectRepositories.class));
    StatusDetection detection = factory.create();
    assertThat(detection).isNotNull();
}
Also used : StatusDetectionFactory(org.sonar.scanner.scan.filesystem.StatusDetectionFactory) StatusDetection(org.sonar.scanner.scan.filesystem.StatusDetection) ProjectRepositories(org.sonar.scanner.repository.ProjectRepositories) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ProjectRepositories (org.sonar.scanner.repository.ProjectRepositories)1 StatusDetection (org.sonar.scanner.scan.filesystem.StatusDetection)1 StatusDetectionFactory (org.sonar.scanner.scan.filesystem.StatusDetectionFactory)1