diff options
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/resources/AbstractLanguageTest.java')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/resources/AbstractLanguageTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/resources/AbstractLanguageTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/resources/AbstractLanguageTest.java index d1fd1d782de..73256aace1c 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/resources/AbstractLanguageTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/resources/AbstractLanguageTest.java @@ -52,6 +52,11 @@ public class AbstractLanguageTest { public String[] getFileSuffixes() { return lang1.getFileSuffixes(); } + + @Override + public boolean publishAllFiles() { + return true; + } })).isTrue(); assertThat(lang1) @@ -61,7 +66,7 @@ public class AbstractLanguageTest { @Test public void should_not_define_language_with_too_long_key() { - assertThatThrownBy(() -> new TooLongKeyLanguage()) + assertThatThrownBy(TooLongKeyLanguage::new) .isInstanceOf(IllegalArgumentException.class) .hasMessage("The following language key exceeds 20 characters: 'aKeyWhichIsVeryVeryVeryVeryVeryLong'"); } |