Skip to content

Commit

Permalink
Fix quality gate
Browse files Browse the repository at this point in the history
  • Loading branch information
damien-urruty-sonarsource authored and dbmeneses committed Apr 10, 2023
1 parent 3f556d8 commit 717a0b0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public void should_not_define_language_with_too_long_key() {
.hasMessage("The following language key exceeds 20 characters: 'aKeyWhichIsVeryVeryVeryVeryVeryLong'");
}

@Test
public void should_return_empty_filename_pattern_by_default() {
var lang = new Language1();

assertThat(lang.filenamePatterns()).isEmpty();
}

static class TooLongKeyLanguage extends AbstractLanguage {
public TooLongKeyLanguage() {
super("aKeyWhichIsVeryVeryVeryVeryVeryLong");
Expand Down

0 comments on commit 717a0b0

Please sign in to comment.