harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r392899 [3/3] - in /incubator/harmony/enhanced/classlib/trunk/modules: auth/src/test/java/common/javax/security/auth/login/ auth/src/test/java/common/tests/api/javax/security/auth/x500/ auth/src/test/java/linux/org/apache/harmony/auth/modul...
Date Mon, 10 Apr 2006 07:21:24 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/CertificateFactoryTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/CertificateFactoryTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/CertificateFactoryTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/CertificateFactoryTest.java
Mon Apr 10 00:21:12 2006
@@ -25,10 +25,8 @@
 import java.security.Security;
 import java.security.cert.CRL;
 import java.security.cert.CRLException;
-import java.security.cert.Certificate;
 import java.security.cert.CertificateException;
 import java.security.cert.CertificateFactory;
-import java.security.cert.X509Certificate;
 import java.util.Collection;
 
 import tests.support.Support_GetResource;
@@ -61,13 +59,12 @@
 				if (CERTIFICATES_ENCODED_X509[i] != null) {
 					ByteArrayInputStream bais = new ByteArrayInputStream(
 							CERTIFICATES_ENCODED_X509[i].getBytes());
-					X509Certificate cert = (X509Certificate) fact
-							.generateCertificate(bais);
+					fact.generateCertificate(bais);
 					
 					// try again with generateCertificates()
 					bais = new ByteArrayInputStream(
 							CERTIFICATES_ENCODED_X509[i].getBytes());
-					cert = (X509Certificate) fact.generateCertificate(bais);
+					fact.generateCertificate(bais);
 				}
 		} catch (CertificateException e) {
 			fail("CertificateException in getInstance or generateCertificate["
@@ -79,7 +76,7 @@
 		boolean caughtException = false;
 		try {
 			CertificateFactory fact = CertificateFactory.getInstance("X.509");
-			Certificate cert = fact.generateCertificate(is);
+			fact.generateCertificate(is);
 		} catch (CertificateException e) {
 			caughtException = true;
 		} finally {
@@ -223,8 +220,7 @@
 
 		// exception case
 		try {
-			CertificateFactory fact = CertificateFactory.getInstance("X.509",
-					"IHaventBeenConfigured");
+			CertificateFactory.getInstance("X.509", "IHaventBeenConfigured");
 			fail("Should have thrown NoSuchProviderException");
 		} catch (NoSuchProviderException e) {
 			// Expected
@@ -245,20 +241,6 @@
 		} catch (CertificateException e) {
 			fail("CertificateException in getInstance");
 		}
-	}
-
-	/**
-	 * Sets up the fixture, for example, open a network connection. This method
-	 * is called before a test is executed.
-	 */
-	protected void setUp() {
-	}
-
-	/**
-	 * Tears down the fixture, for example, close a network connection. This
-	 * method is called after a test is executed.
-	 */
-	protected void tearDown() {
 	}
 
 	static final String[] CERTIFICATES_ENCODED_X509 = new String[17];

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLEntryTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLEntryTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLEntryTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLEntryTest.java
Mon Apr 10 00:21:12 2006
@@ -44,9 +44,6 @@
 		}
 	}
 
-	protected void tearDown() {
-	}
-
 	/**
 	 * @tests java.security.cert.X509CRLEntry#getExtensionValue(java.lang.String)
 	 */

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CRLTest.java
Mon Apr 10 00:21:12 2006
@@ -44,9 +44,6 @@
 		}
 	}
 
-	protected void tearDown() {
-	}
-
 	/**
 	 * @tests java.security.cert.X509CRL#getExtensionValue(java.lang.String)
 	 */

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CertificateTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CertificateTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CertificateTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/cert/X509CertificateTest.java
Mon Apr 10 00:21:12 2006
@@ -43,9 +43,6 @@
 		}
 	}
 
-	protected void tearDown() {
-	}
-
 	/**
 	 * @tests java.security.cert.X509Certificate#getExtensionValue(java.lang.String)
 	 */

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/spec/EncodedKeySpecTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/spec/EncodedKeySpecTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/spec/EncodedKeySpecTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/tests/api/java/security/spec/EncodedKeySpecTest.java
Mon Apr 10 00:21:12 2006
@@ -127,12 +127,6 @@
 		return (String[]) algs.toArray(new String[algs.size()]);
 	}
 
-	protected void setUp() {
-	}
-	
-	protected void tearDown() {
-	}
-
 	private boolean isEqual(Key key1, Key key2) {
 		if (key1 instanceof RSAPublicKey && key2 instanceof RSAPublicKey) {
 			RSAPublicKey rsa1 = ((RSAPublicKey) key1);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLExceptionTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLExceptionTest.java
Mon Apr 10 00:21:12 2006
@@ -35,20 +35,6 @@
     public static void main(String[] args) {
     }
 
-    /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     /**
      * Constructor for SSLExceptionTests.
      * 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLHandshakeExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLHandshakeExceptionTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLHandshakeExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLHandshakeExceptionTest.java
Mon Apr 10 00:21:12 2006
@@ -36,20 +36,6 @@
     public static void main(String[] args) {
     }
 
-    /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     /**
      * Constructor for SSLHandshakeExceptionTests.
      * 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLKeyExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLKeyExceptionTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLKeyExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLKeyExceptionTest.java
Mon Apr 10 00:21:12 2006
@@ -35,20 +35,6 @@
     public static void main(String[] args) {
     }
 
-    /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     /**
      * Constructor for SSLKeyExceptionTests.
      * 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLPeerUnverifiedExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLPeerUnverifiedExceptionTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLPeerUnverifiedExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLPeerUnverifiedExceptionTest.java
Mon Apr 10 00:21:12 2006
@@ -36,20 +36,6 @@
     public static void main(String[] args) {
     }
 
-    /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     /**
      * Constructor for SSLPeerUnverifiedExceptionTests.
      * 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLProtocolExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLProtocolExceptionTest.java?rev=392899&r1=392898&r2=392899&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLProtocolExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/SSLProtocolExceptionTest.java
Mon Apr 10 00:21:12 2006
@@ -35,20 +35,6 @@
     public static void main(String[] args) {
     }
 
-    /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     /**
      * Constructor for SSLProtocolExceptionTests.
      * 



Mime
View raw message