harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r490113 - /harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/CertPathBuilder1Test.java
Date Mon, 25 Dec 2006 07:41:41 GMT
Author: smishura
Date: Sun Dec 24 23:41:40 2006
New Revision: 490113

URL: http://svn.apache.org/viewvc?view=rev&rev=490113
Log:
Catch only NullPointerException

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

Modified: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/CertPathBuilder1Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/CertPathBuilder1Test.java?view=diff&rev=490113&r1=490112&r2=490113
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/CertPathBuilder1Test.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/CertPathBuilder1Test.java
Sun Dec 24 23:41:40 2006
@@ -131,12 +131,11 @@
 	 * throws NoSuchAlgorithmException when algorithm  is not correct
 	 * or it is not available
      */
-    public void testCertPathBuilder02() {
+    public void testCertPathBuilder02() throws NoSuchAlgorithmException {
         try {
             CertPathBuilder.getInstance(null);
-            fail("NullPointerException or NoSuchAlgorithmException must be thrown when algorithm
is null");
+            fail("No expected NullPointerException");
         } catch (NullPointerException e) {
-        } catch (NoSuchAlgorithmException e) {
         }
         for (int i = 0; i < invalidValues.length; i++) {
             try {
@@ -223,9 +222,8 @@
         }
         try {
             CertPathBuilder.getInstance(null, defaultProviderName);
-            fail("NullPointerException or NoSuchAlgorithmException must be thrown when algorithm
is null");
+            fail("No expected NullPointerException");
         } catch (NullPointerException e) {
-        } catch (NoSuchAlgorithmException e) {
         }
         for (int i = 0; i < invalidValues.length; i++) {
             try {
@@ -288,9 +286,8 @@
         }
         try {
             CertPathBuilder.getInstance(null, defaultProvider);
-            fail("NullPointerException or NoSuchAlgorithmException must be thrown when algorithm
is null");
+            fail("No expected NullPointerException");
         } catch (NullPointerException e) {
-        } catch (NoSuchAlgorithmException e) {
         }
         for (int i = 0; i < invalidValues.length; i++) {
             try {



Mime
View raw message