Print this page
rev 6057 : imported patch 8001205.8001562

Split Close
Expand all
Collapse all
          --- old/test/java/util/PluggableLocale/CollatorProviderTest.java
          +++ new/test/java/util/PluggableLocale/CollatorProviderTest.java
↓ open down ↓ 40 lines elided ↑ open up ↑
  41   41          new CollatorProviderTest();
  42   42      }
  43   43  
  44   44      CollatorProviderTest() {
  45   45          availableLocalesTest();
  46   46          objectValidityTest();
  47   47      }
  48   48  
  49   49      void availableLocalesTest() {
  50   50          Set<Locale> localesFromAPI = new HashSet<Locale>(availloc);
  51      -        Set<Locale> localesExpected = new HashSet<Locale>(jreimplloc);
  52      -        localesExpected.remove(Locale.ROOT);
       51 +        Set<Locale> localesExpected = new HashSet<Locale>(jreloc);
  53   52          localesExpected.addAll(providerloc);
  54   53          if (localesFromAPI.equals(localesExpected)) {
  55   54              System.out.println("availableLocalesTest passed.");
  56   55          } else {
  57   56              throw new RuntimeException("availableLocalesTest failed");
  58   57          }
  59   58      }
  60   59  
  61   60      void objectValidityTest() {
  62   61          Collator def = Collator.getInstance(new Locale(""));
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX