harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r412663 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/AuthenticatorTest.java
Date Thu, 08 Jun 2006 05:19:30 GMT
Author: tellison
Date: Wed Jun  7 22:19:29 2006
New Revision: 412663

URL: http://svn.apache.org/viewvc?rev=412663&view=rev
Log:
Make enum test tollerant of different compiler idioms.

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/AuthenticatorTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/AuthenticatorTest.java?rev=412663&r1=412662&r2=412663&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/AuthenticatorTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/AuthenticatorTest.java
Wed Jun  7 22:19:29 2006
@@ -40,13 +40,15 @@
         } catch (IllegalArgumentException e) {
             // correct
         }
-        // Some old RIs,which throw IllegalArgumentException, will fail 
-		// this test case. Latest RIs throw NullPointerException.
+        // Some old RIs throw IllegalArgumentException 
+		// Latest RIs throw NullPointerException.
         try {
-            RequestorType rt = Authenticator.RequestorType.valueOf(null);
-            fail("Must throw NullPointerException");
+            Authenticator.RequestorType.valueOf(null);
+            fail("Must throw an exception");
         } catch (NullPointerException e) {
-            // correct
+            // May be caused by some compilers' code
+        } catch (IllegalArgumentException e) {
+            // other compilers will throw this
         }
     }
 



Mime
View raw message