use of org.sonar.api.component.Perspective in project sonarqube by SonarSource.
the class SymbolizableBuilderTest method project_should_not_be_highlightable.
@Test
public void project_should_not_be_highlightable() {
SymbolizableBuilder builder = new SymbolizableBuilder(mock(DefaultSensorStorage.class), mock(AnalysisMode.class));
Perspective perspective = builder.loadPerspective(Symbolizable.class, new DefaultInputModule("struts"));
assertThat(perspective).isNull();
}
use of org.sonar.api.component.Perspective in project sonarqube by SonarSource.
the class SymbolizableBuilderTest method should_load_perspective.
@Test
public void should_load_perspective() {
SymbolizableBuilder perspectiveBuilder = new SymbolizableBuilder(mock(DefaultSensorStorage.class), mock(AnalysisMode.class));
Perspective perspective = perspectiveBuilder.loadPerspective(Symbolizable.class, new TestInputFileBuilder("foo", "foo.c").build());
assertThat(perspective).isInstanceOf(Symbolizable.class);
}
Aggregations