test/java/util/PluggableLocale/BreakIteratorProviderTest.java

Print this page
rev 6057 : imported patch 8001205.8001562

*** 52,63 **** objectValidityTest(); } void availableLocalesTest() { Set<Locale> localesFromAPI = new HashSet<Locale>(availloc); ! Set<Locale> localesExpected = new HashSet<Locale>(jreimplloc); ! localesExpected.remove(Locale.ROOT); localesExpected.addAll(providerloc); if (localesFromAPI.equals(localesExpected)) { System.out.println("availableLocalesTest passed."); } else { throw new RuntimeException("availableLocalesTest failed"); --- 52,62 ---- objectValidityTest(); } void availableLocalesTest() { Set<Locale> localesFromAPI = new HashSet<Locale>(availloc); ! Set<Locale> localesExpected = new HashSet<Locale>(jreloc); localesExpected.addAll(providerloc); if (localesFromAPI.equals(localesExpected)) { System.out.println("availableLocalesTest passed."); } else { throw new RuntimeException("availableLocalesTest failed");