jdk/test/sun/net/idn/TestStringPrep.java
changeset 36511 9d0388c6b336
parent 30820 0d4717a011d3
child 36657 3b0dd9e3e474
equal deleted inserted replaced
36510:043f1af70518 36511:9d0388c6b336
   229             fail("Got unexpected exception: " + e.toString());
   229             fail("Got unexpected exception: " + e.toString());
   230         }
   230         }
   231     }
   231     }
   232 
   232 
   233     public static void TestNamePrepConformance() throws Exception {
   233     public static void TestNamePrepConformance() throws Exception {
   234         InputStream stream = StringPrep.class.getResourceAsStream("uidna.spp");
   234         InputStream stream = StringPrep.class.getModule()
       
   235                                              .getResourceAsStream("sun/net/idn/uidna.spp");
   235         StringPrep namePrep = new StringPrep(stream);
   236         StringPrep namePrep = new StringPrep(stream);
   236         stream.close();
   237         stream.close();
   237         int i;
   238         int i;
   238         for(i=0; i<TestData.conformanceTestCases.length;i++){
   239         for(i=0; i<TestData.conformanceTestCases.length;i++){
   239             TestData.ConformanceTestCase testCase = TestData.conformanceTestCases[i];
   240             TestData.ConformanceTestCase testCase = TestData.conformanceTestCases[i];