harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r489051 - /harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/UnresolvedPermissionTest.java
Date Wed, 20 Dec 2006 11:23:26 GMT
Author: smishura
Date: Wed Dec 20 03:23:25 2006
New Revision: 489051

URL: http://svn.apache.org/viewvc?view=rev&rev=489051
Log:
Catch NullPointerException (instead of Exception) if type param is null.

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/UnresolvedPermissionTest.java

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/UnresolvedPermissionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/UnresolvedPermissionTest.java?view=diff&rev=489051&r1=489050&r2=489051
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/UnresolvedPermissionTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/UnresolvedPermissionTest.java
Wed Dec 20 03:23:25 2006
@@ -56,9 +56,9 @@
         
         try {
             new UnresolvedPermission(null, name, action, null);
-            fail("exception is not thrown on null type");
+            fail("No expected NullPointerException");
+        } catch (NullPointerException ok) {
         }
-        catch (Exception ok) {}
 
         //Regression for HARMONY-733
         up = new UnresolvedPermission("", "name", "action", null);



Mime
View raw message