@Test public void default_file_suffix() { LessLanguage language = new LessLanguage(mock(Settings.class)); assertThat(language.getFileSuffixes()).containsOnly("less"); }
@Override public String[] getFileSuffixes() { String[] suffixes = settings.getStringArray(Plugin.LESS_FILE_SUFFIXES_KEY); if (suffixes == null || suffixes.length == 0) { suffixes = StringUtils.split(Plugin.LESS_FILE_SUFFIXES_DEFAULT_VALUE, ","); } return suffixes; }
LessLanguage extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = settings.getStringArray(Plugin.LESS_FILE_SUFFIXES_KEY); if (suffixes == null || suffixes.length == 0) { suffixes = StringUtils.split(Plugin.LESS_FILE_SUFFIXES_DEFAULT_VALUE, ","); } return suffixes; } }
LessLanguage extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = settings.getStringArray(Plugin.LESS_FILE_SUFFIXES_KEY); if (suffixes == null || suffixes.length == 0) { suffixes = StringUtils.split(Plugin.LESS_FILE_SUFFIXES_DEFAULT_VALUE, ","); } return suffixes; } LessLanguage(Settings settings); }
LessLanguage extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = settings.getStringArray(Plugin.LESS_FILE_SUFFIXES_KEY); if (suffixes == null || suffixes.length == 0) { suffixes = StringUtils.split(Plugin.LESS_FILE_SUFFIXES_DEFAULT_VALUE, ","); } return suffixes; } LessLanguage(Settings settings); @Override String[] getFileSuffixes(); }
LessLanguage extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = settings.getStringArray(Plugin.LESS_FILE_SUFFIXES_KEY); if (suffixes == null || suffixes.length == 0) { suffixes = StringUtils.split(Plugin.LESS_FILE_SUFFIXES_DEFAULT_VALUE, ","); } return suffixes; } LessLanguage(Settings settings); @Override String[] getFileSuffixes(); static final String KEY; static final String NAME; }