felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r1026176 - /felix/sandbox/rickhall/bnd-test/org.apache.felix.test.framework.bootdelegation/src/org/apache/felix/test/framework/bootdelegation/BootDelegationTest.java
Date Thu, 21 Oct 2010 23:11:51 GMT
Author: rickhall
Date: Thu Oct 21 23:11:51 2010
New Revision: 1026176

URL: http://svn.apache.org/viewvc?rev=1026176&view=rev
Log:
Use fail().

Modified:
    felix/sandbox/rickhall/bnd-test/org.apache.felix.test.framework.bootdelegation/src/org/apache/felix/test/framework/bootdelegation/BootDelegationTest.java

Modified: felix/sandbox/rickhall/bnd-test/org.apache.felix.test.framework.bootdelegation/src/org/apache/felix/test/framework/bootdelegation/BootDelegationTest.java
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/bnd-test/org.apache.felix.test.framework.bootdelegation/src/org/apache/felix/test/framework/bootdelegation/BootDelegationTest.java?rev=1026176&r1=1026175&r2=1026176&view=diff
==============================================================================
--- felix/sandbox/rickhall/bnd-test/org.apache.felix.test.framework.bootdelegation/src/org/apache/felix/test/framework/bootdelegation/BootDelegationTest.java
(original)
+++ felix/sandbox/rickhall/bnd-test/org.apache.felix.test.framework.bootdelegation/src/org/apache/felix/test/framework/bootdelegation/BootDelegationTest.java
Thu Oct 21 23:11:51 2010
@@ -46,7 +46,7 @@ public class BootDelegationTest extends 
         }
         catch (Exception ex)
         {
-            assertTrue("Class should be visible", false);
+            fail("Class should be visible");
         }
         // Should NOT throw an exception.
         try
@@ -55,13 +55,13 @@ public class BootDelegationTest extends 
         }
         catch (Exception ex)
         {
-            assertTrue("Class should be visible", false);
+            fail("Class should be visible");
         }
         // Should throw an exception.
         try
         {
             clazz = Class.forName("javax.swing.table.TableModel");
-            assertTrue("Class should not be visible: " + clazz, false);
+            fail("Class should not be visible: " + clazz);
         }
         catch (Exception ex)
         {
@@ -74,7 +74,7 @@ public class BootDelegationTest extends 
         }
         catch (Exception ex)
         {
-            assertTrue("Class should be visible", false);
+            fail("Class should be visible");
         }
         // Should NOT throw an exception.
         try
@@ -83,13 +83,13 @@ public class BootDelegationTest extends 
         }
         catch (Exception ex)
         {
-            assertTrue("Class should be visible", false);
+            fail("Class should be visible");
         }
         // Should throw an exception.
         try
         {
             clazz = Class.forName("javax.swing.text.Document");
-            assertTrue("Class should not be visible: " + clazz, false);
+            fail("Class should not be visible: " + clazz);
         }
         catch (Exception ex)
         {
@@ -99,7 +99,7 @@ public class BootDelegationTest extends 
         try
         {
             clazz = Class.forName("org.omg.CORBA.Current");
-            assertTrue("Class should not be visible: " + clazz, false);
+            fail("Class should not be visible: " + clazz);
         }
         catch (Exception ex)
         {



Mime
View raw message