jdk/test/java/util/PluggableLocale/ClasspathTest.java
changeset 28093 270b6925cbc8
parent 5506 202f599c92aa
equal deleted inserted replaced
28092:a67de45e0b25 28093:270b6925cbc8
    34         new ClasspathTest();
    34         new ClasspathTest();
    35     }
    35     }
    36 
    36 
    37     ClasspathTest() {
    37     ClasspathTest() {
    38         /*
    38         /*
    39          * Since providers can only be loaded from the extension directory,
    39          * Since providers can be loaded from the application's classpath,
    40          * this test will fail if they are loaded from classpath.
    40          * this test will fail if they are NOT loaded from classpath.
    41          */
    41          */
    42         Locale OSAKA = new Locale("ja", "JP", "osaka");
    42         Locale OSAKA = new Locale("ja", "JP", "osaka");
    43         List<Locale> availableLocales = Arrays.asList(Locale.getAvailableLocales());
    43         List<Locale> availableLocales = Arrays.asList(Locale.getAvailableLocales());
    44         if (availableLocales.contains(OSAKA)) {
    44         if (!availableLocales.contains(OSAKA)) {
    45             throw new RuntimeException("LSS providers were loaded from the class path.");
    45             throw new RuntimeException("LSS providers were NOT loaded from the class path.");
    46         }
    46         }
    47     }
    47     }
    48 }
    48 }