AllophoneSet { public List<String> splitIntoAllophoneList(String allophonesString) { return splitIntoAllophoneList(allophonesString, true); } private  AllophoneSet(InputStream inputStream); static AllophoneSet getAllophoneSet(String filename); static boolean hasAllophoneSet(String identifier); static AllophoneSet getAllophoneSetById(String identifier); static AllophoneSet getAllophoneSet(InputStream inStream, String identifier); Locale getLocale(); Allophone getAllophone(String ph); Allophone getSilence(); String getIgnoreChars(); String getPhoneFeature(String ph, String featureName); Set<String> getPhoneFeatures(); String[] getPossibleFeatureValues(String featureName); Set<String> getAllophoneNames(); Allophone[] splitIntoAllophones(String allophoneString); String splitAllophoneString(String allophoneString); List<String> splitIntoAllophoneList(String allophonesString); boolean checkAllophoneSyntax(String allophoneString); String syllabify(String phoneString);  }
@Test(dataProvider = "allophoneStringData") public void testSplitIntoAllophoneList(String phoneString, String allophoneListString) { String[] allophones = StringUtils.split(allophoneListString); List<String> expected = Arrays.asList(allophones); List<String> actual = allophoneSet.splitIntoAllophoneList(phoneString); Assert.assertEquals(actual, expected); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testSplitIntoAllophoneListWithInvalidInput() { Assert.assertNull(allophoneSet.splitIntoAllophoneList("!@#$%^")); }