Print this page
rev 6090 : imported patch 8001205.8001562

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