use of org.sonar.api.config.Settings in project sonar-web by SonarSource.
the class WebTest method testCustomFileSuffixes.
@Test
public void testCustomFileSuffixes() {
Settings settings = new Settings();
settings.setProperty(WebConstants.FILE_EXTENSIONS_PROP_KEY, "foo, bar , toto");
Web web = new Web(settings);
assertThat(web.getFileSuffixes()).containsOnly("foo", "bar", "toto");
}
use of org.sonar.api.config.Settings in project sonar-web by SonarSource.
the class WebTest method testDefaultFileSuffixes.
@Test
public void testDefaultFileSuffixes() {
Settings settings = new Settings();
settings.setProperty(WebConstants.FILE_EXTENSIONS_PROP_KEY, WebConstants.FILE_EXTENSIONS_DEF_VALUE);
Web web = new Web(settings);
assertThat(web.getFileSuffixes()).containsOnly(".html", ".xhtml", ".rhtml", ".shtml");
}
Aggregations