@Test public void testCustomFileSuffixes() { MapSettings settings = new MapSettings(); settings.setProperty(HtmlConstants.FILE_EXTENSIONS_PROP_KEY, "foo, bar , toto"); Html html = new Html(settings.asConfig()); assertThat(html.getFileSuffixes()).containsOnly("foo", "bar", "toto"); }
@Override public String[] getFileSuffixes() { return configuration.getStringArray(HtmlConstants.FILE_EXTENSIONS_PROP_KEY); }
Html extends AbstractLanguage { @Override public String[] getFileSuffixes() { return configuration.getStringArray(HtmlConstants.FILE_EXTENSIONS_PROP_KEY); } }
Html extends AbstractLanguage { @Override public String[] getFileSuffixes() { return configuration.getStringArray(HtmlConstants.FILE_EXTENSIONS_PROP_KEY); } Html(Configuration configuration); }
Html extends AbstractLanguage { @Override public String[] getFileSuffixes() { return configuration.getStringArray(HtmlConstants.FILE_EXTENSIONS_PROP_KEY); } Html(Configuration configuration); @Override String[] getFileSuffixes(); }
Html extends AbstractLanguage { @Override public String[] getFileSuffixes() { return configuration.getStringArray(HtmlConstants.FILE_EXTENSIONS_PROP_KEY); } Html(Configuration configuration); @Override String[] getFileSuffixes();  }