harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r414781 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
Date Fri, 16 Jun 2006 09:14:31 GMT
Author: smishura
Date: Fri Jun 16 02:14:30 2006
New Revision: 414781

URL: http://svn.apache.org/viewvc?rev=414781&view=rev
Log:
Replace fail() -> assertNotNull()

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java?rev=414781&r1=414780&r2=414781&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
Fri Jun 16 02:14:30 2006
@@ -59,9 +59,7 @@
         // Look for the tests classpath
         URL classURL = this.getClass().getProtectionDomain().getCodeSource()
                 .getLocation();
-        if (classURL == null) {
-            fail("Could not get this class' location");
-        }
+        assertNotNull("Could not get this class' location", classURL);
 
         File policyFile = null;
         try {



Mime
View raw message