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