harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r489932 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
Date Sat, 23 Dec 2006 22:13:28 GMT
Author: tellison
Date: Sat Dec 23 14:13:27 2006
New Revision: 489932

URL: http://svn.apache.org/viewvc?view=rev&rev=489932
Log:
Fix to regression test for HARMONY-2357 ([classlib] [luni] Method findClass() in class URLClassLoader
throws ClassNotFoundException)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java?view=diff&rev=489932&r1=489931&r2=489932
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
Sat Dec 23 14:13:27 2006
@@ -304,8 +304,13 @@
         assertFalse("No more resources expected", en.hasMoreElements());
        
         // Regression test for HARMONY-2357.
-        URLClassLoaderExt cl = new URLClassLoaderExt(new URL[557]);    
-        cl.findClass("0");                                         
+        try {
+            URLClassLoaderExt cl = new URLClassLoaderExt(new URL[557]);
+            cl.findClass("0");
+            fail("NullPointerException should be thrown");
+        } catch (NullPointerException npe) {
+            // Expected
+        }
     }
 
     /**



Mime
View raw message