Print this page
rev 6057 : imported patch 8001205.8001562

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