Search in sources :

Example 6 with Issuable

use of org.sonar.api.issue.Issuable in project sonarqube by SonarSource.

the class IssuableFactoryTest method project_should_be_issuable.

@Test
public void project_should_be_issuable() {
    IssuableFactory factory = new IssuableFactory(mock(DefaultSensorContext.class));
    Issuable issuable = factory.loadPerspective(Issuable.class, new DefaultInputModule("foo"));
    assertThat(issuable).isNotNull();
    assertThat(issuable.issues()).isEmpty();
}
Also used : DefaultSensorContext(org.sonar.scanner.sensor.DefaultSensorContext) Issuable(org.sonar.api.issue.Issuable) DefaultInputModule(org.sonar.api.batch.fs.internal.DefaultInputModule) Test(org.junit.Test)

Aggregations

Issuable (org.sonar.api.issue.Issuable)6 Test (org.junit.Test)2 DefaultSensorContext (org.sonar.scanner.sensor.DefaultSensorContext)2 File (java.io.File)1 DefaultInputModule (org.sonar.api.batch.fs.internal.DefaultInputModule)1 TestInputFileBuilder (org.sonar.api.batch.fs.internal.TestInputFileBuilder)1 Directory (org.sonar.api.resources.Directory)1 PathResolver (org.sonar.api.scan.filesystem.PathResolver)1