use of org.sonar.api.resources.Languages in project sonarqube by SonarSource.
the class LanguageDetectionTest method should_not_fail_if_no_language.
@Test
public void should_not_fail_if_no_language() throws Exception {
LanguageDetection detection = spy(new LanguageDetection(new MapSettings(), new DefaultLanguagesRepository(new Languages())));
assertThat(detection.language(newIndexedFile("Foo.java"))).isNull();
}
Aggregations