use of org.sonar.api.resources.AbstractLanguage in project sonarqube by SonarSource.
the class QualityProfileEventsStepTest method mockLanguageInRepository.
private Language mockLanguageInRepository(String languageKey) {
Language language = new AbstractLanguage(languageKey, languageKey + "_name") {
@Override
public String[] getFileSuffixes() {
return new String[0];
}
};
when(languageRepository.find(languageKey)).thenReturn(Optional.of(language));
return language;
}
Aggregations