harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r454817 - /incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java.injected/javax/crypto/CipherSpiTest.java
Date Tue, 10 Oct 2006 16:43:52 GMT
Author: hindessm
Date: Tue Oct 10 09:43:52 2006
New Revision: 454817

URL: http://svn.apache.org/viewvc?view=rev&rev=454817
Log:
Change assertTrue(blah,false) to fail(blah).

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java.injected/javax/crypto/CipherSpiTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java.injected/javax/crypto/CipherSpiTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java.injected/javax/crypto/CipherSpiTest.java?view=diff&rev=454817&r1=454816&r2=454817
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java.injected/javax/crypto/CipherSpiTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java.injected/javax/crypto/CipherSpiTest.java
Tue Oct 10 09:43:52 2006
@@ -87,7 +87,7 @@
         CipherSpi cSpi = new myCipherSpi();
         try {
             cSpi.engineGetKeySize(null);
-            assertTrue("UnsupportedOperationException must be thrown", false);
+            fail("UnsupportedOperationException must be thrown");
         } catch (UnsupportedOperationException e) {
         }
     }
@@ -100,7 +100,7 @@
         CipherSpi cSpi = new myCipherSpi();
         try {
             cSpi.engineWrap(null);
-            assertTrue("UnsupportedOperationException must be thrown", false);
+            fail("UnsupportedOperationException must be thrown");
         } catch (UnsupportedOperationException e) {
         }
     }
@@ -113,7 +113,7 @@
         CipherSpi cSpi = new myCipherSpi();
         try {
             cSpi.engineUnwrap(new byte[0], "", 0);
-            assertTrue("UnsupportedOperationException must be thrown", false);
+            fail("UnsupportedOperationException must be thrown");
         } catch (UnsupportedOperationException e) {
         }
     }



Mime
View raw message