harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r420458 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/X509CertSelectorTest.java
Date Mon, 10 Jul 2006 07:55:15 GMT
Author: mloenko
Date: Mon Jul 10 00:55:14 2006
New Revision: 420458

URL: http://svn.apache.org/viewvc?rev=420458&view=rev
Log:
regression test for HARMONY-724
[classlib][security] unexpected exception for java.security.X509CertSelector.addPathToName
(<1,2,4,7,8>, (String) null)

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/X509CertSelectorTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/X509CertSelectorTest.java?rev=420458&r1=420457&r2=420458&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/X509CertSelectorTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/X509CertSelectorTest.java
Mon Jul 10 00:55:14 2006
@@ -41,4 +41,20 @@
             }
         }
     }
+    
+    /**
+     * @tests addPathToName(int type, String name)
+     */
+    public void testAddPathToName() {
+        // Regression for HARMONY-724
+        for (int type = 0; type <= 8; type++) {
+            try {
+                new X509CertSelector().addPathToName(type, (String) null);
+                fail("IOException expected!");
+            } catch (IOException ioe) {
+                // expected
+            }
+        }
+    }
+
 }



Mime
View raw message