harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r392212 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/provider/cert/X509CertPathImplTest.java
Date Fri, 07 Apr 2006 08:18:30 GMT
Author: mloenko
Date: Fri Apr  7 01:18:27 2006
New Revision: 392212

URL: http://svn.apache.org/viewcvs?rev=392212&view=rev
Log:
fixed test's expected behavior in case of missing encodings

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/provider/cert/X509CertPathImplTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/provider/cert/X509CertPathImplTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/provider/cert/X509CertPathImplTest.java?rev=392212&r1=392211&r2=392212&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/provider/cert/X509CertPathImplTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/provider/cert/X509CertPathImplTest.java
Fri Apr  7 01:18:27 2006
@@ -142,8 +142,12 @@
     /**
      * getEncoded(String encoding) method testing.
      */
-    public void testGetEncoded2() throws Exception {
-        certPath.getEncoded("ABRACADABRA");
+    public void testGetEncoded2() {
+        try {
+            certPath.getEncoded("ABRACADABRA");
+            fail("CertificateEncodingException should be thrown");
+        } catch (CertificateEncodingException e) {
+        }
     }
     
     /**



Mime
View raw message