JSONLanguage extends AbstractLanguage { @Override public String[] getFileSuffixes() { return new String[] {"json"}; } JSONLanguage(); @Override String[] getFileSuffixes(); static final String KEY; }
@Test public void default_file_suffix() { JSONLanguage json = new JSONLanguage(); assertThat(json.getFileSuffixes()).containsOnly("json"); }