Print this page
rev 6057 : imported patch 8001205.8001562

Split Close
Expand all
Collapse all
          --- old/test/java/util/PluggableLocale/GenericTest.java
          +++ new/test/java/util/PluggableLocale/GenericTest.java
↓ open down ↓ 65 lines elided ↑ open up ↑
  66   66          expected.addAll(Arrays.asList(collatorP.getAvailableLocales()));
  67   67          expected.addAll(Arrays.asList(dateFP.getAvailableLocales()));
  68   68          expected.addAll(Arrays.asList(dateFSP.getAvailableLocales()));
  69   69          expected.addAll(Arrays.asList(decimalFSP.getAvailableLocales()));
  70   70          expected.addAll(Arrays.asList(numberFP.getAvailableLocales()));
  71   71          expected.addAll(Arrays.asList(currencyNP.getAvailableLocales()));
  72   72          expected.addAll(Arrays.asList(currencyNP2.getAvailableLocales()));
  73   73          expected.addAll(Arrays.asList(localeNP.getAvailableLocales()));
  74   74          expected.addAll(Arrays.asList(tzNP.getAvailableLocales()));
  75   75          expected.addAll(Arrays.asList(calDataP.getAvailableLocales()));
  76      -        expected.remove(Locale.ROOT);
  77   76          if (!result.equals(expected)) {
  78   77              throw new RuntimeException("Locale.getAvailableLocales() does not return the union of locales: diff="
  79   78                                         + getDiff(result, expected));
  80   79          }
  81   80      }
  82   81  
  83   82      /**
  84   83       * test with "xx_YY_ZZ", which is an example locale not contained
  85   84       * in Locale.getAvailableLocales().  Fallback tests for supported locales
  86   85       * are done in each xxxProviderTest test cases.
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX