test/java/util/PluggableLocale/NumberFormatProviderTest.java

Print this page
rev 6057 : imported patch 8001205.8001562

*** 49,60 **** messageFormatTest(); } 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"); --- 49,59 ---- messageFormatTest(); } 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");