harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r451110 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/X509CertificateTest.java
Date Fri, 29 Sep 2006 04:03:28 GMT
Author: smishura
Date: Thu Sep 28 21:03:26 2006
New Revision: 451110

URL: http://svn.apache.org/viewvc?view=rev&rev=451110
Log:
Correct update (patch for HARMONY-756): add fail for try-catch block + reformat

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/X509CertificateTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/X509CertificateTest.java?view=diff&rev=451110&r1=451109&r2=451110
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/X509CertificateTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/X509CertificateTest.java
Thu Sep 28 21:03:26 2006
@@ -116,12 +116,14 @@
             // The requested certificate type is not available.
             // Test pass..
         }
+
         // Regression for HARMONY-756
-		try {
-			X509Certificate.getInstance((InputStream) null);
-		} catch (CertificateException e) {
-			//expected;
-		}
+        try {
+            X509Certificate.getInstance((InputStream) null);
+            fail("No expected CertificateException");
+        } catch (CertificateException e) {
+            //expected;
+        }
     }
 
     /**
@@ -142,12 +144,14 @@
             // The requested certificate type is not available.
             // Test pass..
         }
-   		// Regression for HARMONY-756
-		try {
-			X509Certificate.getInstance((byte[]) null);
-		} catch (CertificateException e) {
-			//expected;
-		}
+
+        // Regression for HARMONY-756
+        try {
+            X509Certificate.getInstance((byte[]) null);
+            fail("No expected CertificateException");
+        } catch (CertificateException e) {
+            //expected;
+        }
     }
 
     /**



Mime
View raw message