@Test void testSupportedLanguages() { SpaceBetweenAlphabeticalWordValidator validator = new SpaceBetweenAlphabeticalWordValidator(); final List<String> languages = validator.getSupportedLanguages(); assertEquals(2, languages.size()); assertEquals(Locale.JAPANESE.getLanguage(), languages.get(0)); assertEquals(Locale.CHINESE.getLanguage(), languages.get(1)); }
@Override public List<String> getSupportedLanguages() { return Arrays.asList(Locale.JAPANESE.getLanguage(), Locale.CHINESE.getLanguage()); }
SpaceBetweenAlphabeticalWordValidator extends Validator { @Override public List<String> getSupportedLanguages() { return Arrays.asList(Locale.JAPANESE.getLanguage(), Locale.CHINESE.getLanguage()); } }
SpaceBetweenAlphabeticalWordValidator extends Validator { @Override public List<String> getSupportedLanguages() { return Arrays.asList(Locale.JAPANESE.getLanguage(), Locale.CHINESE.getLanguage()); } SpaceBetweenAlphabeticalWordValidator(); }
SpaceBetweenAlphabeticalWordValidator extends Validator { @Override public List<String> getSupportedLanguages() { return Arrays.asList(Locale.JAPANESE.getLanguage(), Locale.CHINESE.getLanguage()); } SpaceBetweenAlphabeticalWordValidator(); @Override List<String> getSupportedLanguages(); @Override void validate(Sentence sentence); }
SpaceBetweenAlphabeticalWordValidator extends Validator { @Override public List<String> getSupportedLanguages() { return Arrays.asList(Locale.JAPANESE.getLanguage(), Locale.CHINESE.getLanguage()); } SpaceBetweenAlphabeticalWordValidator(); @Override List<String> getSupportedLanguages(); @Override void validate(Sentence sentence);  }