harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r415555 [13/17] - in /incubator/harmony/enhanced/classlib/trunk/modules/security: make/common/ src/test/api/java.injected/java/security/acl/ src/test/api/java.injected/java/security/cert/ src/test/api/java.injected/java/security/interfaces/...
Date Tue, 20 Jun 2006 08:11:19 GMT
Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/InvalidParameterSpecExceptionTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/InvalidParameterSpecExceptionTest.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/spec/InvalidParameterSpecExceptionTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/InvalidParameterSpecExceptionTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/InvalidParameterSpecExceptionTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/InvalidParameterSpecExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/InvalidParameterSpecExceptionTest.java Tue Jun 20 01:11:04 2006
@@ -1,114 +1,113 @@
-/*
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-/**
-* @author Vera Y. Petrashkova
-* @version $Revision$
-*/
-
-package java.security.spec;
-
-import java.security.spec.InvalidParameterSpecException;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>InvalidParameterSpecException</code> class constructors and
- * methods.
- * 
- */
-public class InvalidParameterSpecExceptionTest extends TestCase {
-
-    public static void main(String[] args) {
-    }
-
-    /**
-     * Constructor for InvalidParameterSpecExceptionTests.
-     * 
-     * @param arg0
-     */
-    public InvalidParameterSpecExceptionTest(String arg0) {
-        super(arg0);
-    }
-
-    static String[] msgs = {
-            "",
-            "Check new message",
-            "Check new message Check new message Check new message Check new message Check new message" };
-
-    static Throwable tCause = new Throwable("Throwable for exception");
-
-    static String createErr(Exception tE, Exception eE) {
-        return "InvalidParameterSpecException:  ".concat(tE.toString()).concat(
-                " is not equal to caught exception: ").concat(eE.toString());
-    }
-
-    /**
-     * Test for <code>InvalidParameterSpecException()</code> constructor
-     * Assertion: constructs InvalidParameterSpecException with no detail
-     * message
-     */
-    public void testInvalidParameterSpecException01() {
-        InvalidParameterSpecException tE = new InvalidParameterSpecException();
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-    /**
-     * Test for <code>InvalidParameterSpecException(String)</code> constructor
-     * Assertion: constructs InvalidParameterSpecException with detail message
-     * msg. Parameter <code>msg</code> is not null.
-     */
-    public void testInvalidParameterSpecException02() {
-        InvalidParameterSpecException tE;
-        for (int i = 0; i < msgs.length; i++) {
-            tE = new InvalidParameterSpecException(msgs[i]);
-            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
-                    .getMessage(), msgs[i]);
-            assertNull("getCause() must return null", tE.getCause());
-            try {
-                throw tE;
-            } catch (Exception e) {
-                assertTrue(createErr(tE, e), tE.equals(e));
-            }
-        }
-    }
-
-    /**
-     * Test for <code>InvalidParameterSpecException(String)</code> constructor
-     * Assertion: constructs InvalidParameterSpecException when <code>msg</code>
-     * is null
-     */
-    public void testInvalidParameterSpecException03() {
-        String msg = null;
-        InvalidParameterSpecException tE = new InvalidParameterSpecException(
-                msg);
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-}
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/**
+* @author Vera Y. Petrashkova
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.java.security.spec;
+
+import java.security.spec.InvalidParameterSpecException;
+
+import junit.framework.TestCase;
+
+/**
+ * Tests for <code>InvalidParameterSpecException</code> class constructors and
+ * methods.
+ * 
+ */
+public class InvalidParameterSpecExceptionTest extends TestCase {
+
+    public static void main(String[] args) {
+    }
+
+    /**
+     * Constructor for InvalidParameterSpecExceptionTests.
+     * 
+     * @param arg0
+     */
+    public InvalidParameterSpecExceptionTest(String arg0) {
+        super(arg0);
+    }
+
+    static String[] msgs = {
+            "",
+            "Check new message",
+            "Check new message Check new message Check new message Check new message Check new message" };
+
+    static Throwable tCause = new Throwable("Throwable for exception");
+
+    static String createErr(Exception tE, Exception eE) {
+        return "InvalidParameterSpecException:  ".concat(tE.toString()).concat(
+                " is not equal to caught exception: ").concat(eE.toString());
+    }
+
+    /**
+     * Test for <code>InvalidParameterSpecException()</code> constructor
+     * Assertion: constructs InvalidParameterSpecException with no detail
+     * message
+     */
+    public void testInvalidParameterSpecException01() {
+        InvalidParameterSpecException tE = new InvalidParameterSpecException();
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+    /**
+     * Test for <code>InvalidParameterSpecException(String)</code> constructor
+     * Assertion: constructs InvalidParameterSpecException with detail message
+     * msg. Parameter <code>msg</code> is not null.
+     */
+    public void testInvalidParameterSpecException02() {
+        InvalidParameterSpecException tE;
+        for (int i = 0; i < msgs.length; i++) {
+            tE = new InvalidParameterSpecException(msgs[i]);
+            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
+                    .getMessage(), msgs[i]);
+            assertNull("getCause() must return null", tE.getCause());
+            try {
+                throw tE;
+            } catch (Exception e) {
+                assertTrue(createErr(tE, e), tE.equals(e));
+            }
+        }
+    }
+
+    /**
+     * Test for <code>InvalidParameterSpecException(String)</code> constructor
+     * Assertion: constructs InvalidParameterSpecException when <code>msg</code>
+     * is null
+     */
+    public void testInvalidParameterSpecException03() {
+        String msg = null;
+        InvalidParameterSpecException tE = new InvalidParameterSpecException(
+                msg);
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+}

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/MGF1ParameterSpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/MGF1ParameterSpecTest.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/spec/MGF1ParameterSpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/MGF1ParameterSpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/MGF1ParameterSpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/MGF1ParameterSpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/MGF1ParameterSpecTest.java Tue Jun 20 01:11:04 2006
@@ -19,7 +19,9 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
+
+import java.security.spec.MGF1ParameterSpec;
 
 import junit.framework.TestCase;
 

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/PKCS8EncodedKeySpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/PKCS8EncodedKeySpecTest.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/spec/PKCS8EncodedKeySpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/PKCS8EncodedKeySpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/PKCS8EncodedKeySpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/PKCS8EncodedKeySpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/PKCS8EncodedKeySpecTest.java Tue Jun 20 01:11:04 2006
@@ -19,12 +19,13 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
 
+import java.security.spec.EncodedKeySpec;
+import java.security.spec.PKCS8EncodedKeySpec;
 import java.util.Arrays;
 
 import junit.framework.TestCase;
-
 
 /**
  * Tests for <code>PKCS8EncodedKeySpec</code> class fields and methods.

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/PSSParameterSpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/PSSParameterSpecTest.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/spec/PSSParameterSpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/PSSParameterSpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/PSSParameterSpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/PSSParameterSpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/PSSParameterSpecTest.java Tue Jun 20 01:11:04 2006
@@ -19,7 +19,11 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
+
+import java.security.spec.AlgorithmParameterSpec;
+import java.security.spec.MGF1ParameterSpec;
+import java.security.spec.PSSParameterSpec;
 
 import junit.framework.TestCase;
 

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAKeyGenParameterSpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAKeyGenParameterSpecTest.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/spec/RSAKeyGenParameterSpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAKeyGenParameterSpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAKeyGenParameterSpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAKeyGenParameterSpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAKeyGenParameterSpecTest.java Tue Jun 20 01:11:04 2006
@@ -19,12 +19,13 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
 
 import java.math.BigInteger;
+import java.security.spec.AlgorithmParameterSpec;
+import java.security.spec.RSAKeyGenParameterSpec;
 
 import junit.framework.TestCase;
-
 
 /**
  * Tests for <code>RSAKeyGenParameterSpec</code> class fields and methods.

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAMultiPrimePrivateCrtKeySpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAMultiPrimePrivateCrtKeySpecTest.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/spec/RSAMultiPrimePrivateCrtKeySpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAMultiPrimePrivateCrtKeySpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAMultiPrimePrivateCrtKeySpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAMultiPrimePrivateCrtKeySpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAMultiPrimePrivateCrtKeySpecTest.java Tue Jun 20 01:11:04 2006
@@ -19,12 +19,15 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
 
 import java.math.BigInteger;
+import java.security.spec.KeySpec;
+import java.security.spec.RSAMultiPrimePrivateCrtKeySpec;
+import java.security.spec.RSAOtherPrimeInfo;
+import java.security.spec.RSAPrivateKeySpec;
 
 import junit.framework.TestCase;
-
 
 /**
  * Tests for <code>RSAMultiPrimePrivateCrtKeySpec</code> class fields and methods.

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAOtherPrimeInfoTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAOtherPrimeInfoTest.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/spec/RSAOtherPrimeInfoTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAOtherPrimeInfoTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAOtherPrimeInfoTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAOtherPrimeInfoTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAOtherPrimeInfoTest.java Tue Jun 20 01:11:04 2006
@@ -19,12 +19,12 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
 
 import java.math.BigInteger;
+import java.security.spec.RSAOtherPrimeInfo;
 
 import junit.framework.TestCase;
-
 
 /**
  * Tests for <code>RSAOtherPrimeInfo</code> class fields and methods.

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPrivateCrtKeySpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPrivateCrtKeySpecTest.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/spec/RSAPrivateCrtKeySpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPrivateCrtKeySpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPrivateCrtKeySpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPrivateCrtKeySpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPrivateCrtKeySpecTest.java Tue Jun 20 01:11:04 2006
@@ -1,236 +1,238 @@
-/*
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-/**
-* @author Vladimir N. Molotkov
-* @version $Revision$
-*/
-
-package java.security.spec;
-
-import java.math.BigInteger;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>RSAPrivateCrtKeySpec</code> class fields and methods
- * 
- */
-public class RSAPrivateCrtKeySpecTest extends TestCase {
-
-    /**
-     * Constructor for RSAPrivateCrtKeySpecTest.
-     * @param name
-     */
-    public RSAPrivateCrtKeySpecTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Test #1 for <code>RSAPrivateCrtKeySpec</code> constructor
-     * Assertion: Constructs <code>RSAPrivateCrtKeySpec</code>
-     * object using valid parameters
-     */
-    public final void testRSAPrivateCrtKeySpec01() {
-        KeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(ks instanceof RSAPrivateCrtKeySpec);
-    }
-
-    /**
-     * Test #2 for <code>RSAPrivateCrtKeySpec</code> constructor
-     * Assertion: Constructs <code>RSAPrivateCrtKeySpec</code>
-     * object using valid parameters
-     */
-    public final void testRSAPrivateCrtKeySpec02() {
-        KeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(ks instanceof RSAPrivateKeySpec);
-    }
-
-    /**
-     * Test #3 for <code>RSAPrivateCrtKeySpec</code> constructor
-     * Assertion: Constructs <code>RSAPrivateCrtKeySpec</code>
-     * object using valid parameters
-     */
-    public final void testRSAPrivateCrtKeySpec03() {
-        new RSAPrivateCrtKeySpec(
-                null,
-                null,
-                null,
-                null,
-                null,
-                null,
-                null,
-                null);
-    }
-    
-    /**
-     * Test for <code>getCrtCoefficient()</code> method<br>
-     * Assertion: returns crt coefficient
-     */
-    public final void testGetCrtCoefficient() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.valueOf(5L));
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient()));
-    }
-
-    /**
-     * Test for <code>getPrimeExponentP()</code> method<br>
-     * Assertion: returns prime exponent P
-     */
-    public final void testGetPrimeExponentP() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.valueOf(5L),
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP()));
-    }
-
-    /**
-     * Test for <code>getPrimeExponentQ()</code> method<br>
-     * Assertion: returns prime exponent Q
-     */
-    public final void testGetPrimeExponentQ() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.valueOf(5L),
-                BigInteger.ONE);
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ()));
-    }
-
-    /**
-     * Test for <code>getPrimeP()</code> method<br>
-     * Assertion: returns prime P
-     */
-    public final void testGetPrimeP() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.valueOf(5L),
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeP()));
-    }
-
-    /**
-     * Test for <code>getPrimeQ()</code> method<br>
-     * Assertion: returns prime Q
-     */
-    public final void testGetPrimeQ() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.valueOf(5L),
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeQ()));
-    }
-
-    /**
-     * Test for <code>getPublicExponent()</code> method<br>
-     * Assertion: returns public exponent
-     */
-    public final void testGetPublicExponent() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.valueOf(5L),
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getPublicExponent()));
-    }
-
-    //
-    // Tests for inherited methods
-    //
-    
-    /**
-     * Test for <code>getModulus()</code> method<br>
-     * Assertion: returns modulus
-     */
-    public final void testGetModulus() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.valueOf(5L),
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getModulus()));
-    }
-
-    /**
-     * Test for <code>getPrivateExponent()</code> method<br>
-     * Assertion: returns private exponent
-     */
-    public final void testGetPrivateExponent() {
-        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.valueOf(5L),
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE,
-                BigInteger.ONE);
-        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrivateExponent()));
-    }
-
-}
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/**
+* @author Vladimir N. Molotkov
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.java.security.spec;
+
+import java.math.BigInteger;
+import java.security.spec.KeySpec;
+import java.security.spec.RSAPrivateCrtKeySpec;
+import java.security.spec.RSAPrivateKeySpec;
+
+import junit.framework.TestCase;
+
+/**
+ * Tests for <code>RSAPrivateCrtKeySpec</code> class fields and methods
+ * 
+ */
+public class RSAPrivateCrtKeySpecTest extends TestCase {
+
+    /**
+     * Constructor for RSAPrivateCrtKeySpecTest.
+     * @param name
+     */
+    public RSAPrivateCrtKeySpecTest(String name) {
+        super(name);
+    }
+
+    /**
+     * Test #1 for <code>RSAPrivateCrtKeySpec</code> constructor
+     * Assertion: Constructs <code>RSAPrivateCrtKeySpec</code>
+     * object using valid parameters
+     */
+    public final void testRSAPrivateCrtKeySpec01() {
+        KeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(ks instanceof RSAPrivateCrtKeySpec);
+    }
+
+    /**
+     * Test #2 for <code>RSAPrivateCrtKeySpec</code> constructor
+     * Assertion: Constructs <code>RSAPrivateCrtKeySpec</code>
+     * object using valid parameters
+     */
+    public final void testRSAPrivateCrtKeySpec02() {
+        KeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(ks instanceof RSAPrivateKeySpec);
+    }
+
+    /**
+     * Test #3 for <code>RSAPrivateCrtKeySpec</code> constructor
+     * Assertion: Constructs <code>RSAPrivateCrtKeySpec</code>
+     * object using valid parameters
+     */
+    public final void testRSAPrivateCrtKeySpec03() {
+        new RSAPrivateCrtKeySpec(
+                null,
+                null,
+                null,
+                null,
+                null,
+                null,
+                null,
+                null);
+    }
+    
+    /**
+     * Test for <code>getCrtCoefficient()</code> method<br>
+     * Assertion: returns crt coefficient
+     */
+    public final void testGetCrtCoefficient() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.valueOf(5L));
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient()));
+    }
+
+    /**
+     * Test for <code>getPrimeExponentP()</code> method<br>
+     * Assertion: returns prime exponent P
+     */
+    public final void testGetPrimeExponentP() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.valueOf(5L),
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP()));
+    }
+
+    /**
+     * Test for <code>getPrimeExponentQ()</code> method<br>
+     * Assertion: returns prime exponent Q
+     */
+    public final void testGetPrimeExponentQ() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.valueOf(5L),
+                BigInteger.ONE);
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ()));
+    }
+
+    /**
+     * Test for <code>getPrimeP()</code> method<br>
+     * Assertion: returns prime P
+     */
+    public final void testGetPrimeP() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.valueOf(5L),
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeP()));
+    }
+
+    /**
+     * Test for <code>getPrimeQ()</code> method<br>
+     * Assertion: returns prime Q
+     */
+    public final void testGetPrimeQ() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.valueOf(5L),
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeQ()));
+    }
+
+    /**
+     * Test for <code>getPublicExponent()</code> method<br>
+     * Assertion: returns public exponent
+     */
+    public final void testGetPublicExponent() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.valueOf(5L),
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getPublicExponent()));
+    }
+
+    //
+    // Tests for inherited methods
+    //
+    
+    /**
+     * Test for <code>getModulus()</code> method<br>
+     * Assertion: returns modulus
+     */
+    public final void testGetModulus() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.valueOf(5L),
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getModulus()));
+    }
+
+    /**
+     * Test for <code>getPrivateExponent()</code> method<br>
+     * Assertion: returns private exponent
+     */
+    public final void testGetPrivateExponent() {
+        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.valueOf(5L),
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE,
+                BigInteger.ONE);
+        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrivateExponent()));
+    }
+
+}

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPrivateKeySpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPrivateKeySpecTest.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/spec/RSAPrivateKeySpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPrivateKeySpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPrivateKeySpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPrivateKeySpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPrivateKeySpecTest.java Tue Jun 20 01:11:04 2006
@@ -19,12 +19,13 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
 
 import java.math.BigInteger;
+import java.security.spec.KeySpec;
+import java.security.spec.RSAPrivateKeySpec;
 
 import junit.framework.TestCase;
-
 
 /**
  * Tests for <code>RSAPrivateKeySpec</code> class fields and methods

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPublicKeySpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPublicKeySpecTest.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/spec/RSAPublicKeySpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPublicKeySpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPublicKeySpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/RSAPublicKeySpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPublicKeySpecTest.java Tue Jun 20 01:11:04 2006
@@ -1,91 +1,92 @@
-/*
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-/**
-* @author Vladimir N. Molotkov
-* @version $Revision$
-*/
-
-package java.security.spec;
-
-import java.math.BigInteger;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>RSAPublicKeySpec</code> class fields and methods
- * 
- */
-public class RSAPublicKeySpecTest extends TestCase {
-
-    /**
-     * Constructor for RSAPublicKeySpecTest.
-     * @param name
-     */
-    public RSAPublicKeySpecTest(String name) {
-        super(name);
-    }
-
-
-    /**
-     * Test #1 for <code>RSAPublicKeySpec</code> constructor
-     * Assertion: Constructs <code>RSAPublicKeySpec</code>
-     * object using valid parameters
-     */
-    public final void testRSAPublicKeySpec01() {
-        KeySpec ks =
-            new RSAPublicKeySpec(BigInteger.valueOf(1234567890L),
-                                 BigInteger.valueOf(3L));
-        
-        assertTrue(ks instanceof RSAPublicKeySpec);
-    }
-
-    /**
-     * Test #2 for <code>RSAPublicKeySpec</code> constructor
-     * Assertion: Constructs <code>RSAPublicKeySpec</code>
-     * object using valid parameters
-     */
-    public final void testRSAPublicKeySpec02() {
-        KeySpec ks =
-            new RSAPublicKeySpec(null, null);
-
-        assertTrue(ks instanceof RSAPublicKeySpec);
-    }
-    
-    /**
-     * Test for <code>getModulus()</code> method<br>
-     * Assertion: returns modulus
-     */
-    public final void testGetModulus() {
-        RSAPublicKeySpec rpks =
-            new RSAPublicKeySpec(BigInteger.valueOf(1234567890L),
-                                 BigInteger.valueOf(3L));
-        assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus()));
-    }
-
-    /**
-     * Test for <code>getPublicExponent()</code> method<br>
-     * Assertion: returns public exponent
-     */
-    public final void testGetPublicExponent() {
-        RSAPublicKeySpec rpks =
-            new RSAPublicKeySpec(BigInteger.valueOf(3L),
-                                 BigInteger.valueOf(1234567890L));
-        assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent()));
-    }
-
-}
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/**
+* @author Vladimir N. Molotkov
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.java.security.spec;
+
+import java.math.BigInteger;
+import java.security.spec.KeySpec;
+import java.security.spec.RSAPublicKeySpec;
+
+import junit.framework.TestCase;
+
+/**
+ * Tests for <code>RSAPublicKeySpec</code> class fields and methods
+ * 
+ */
+public class RSAPublicKeySpecTest extends TestCase {
+
+    /**
+     * Constructor for RSAPublicKeySpecTest.
+     * @param name
+     */
+    public RSAPublicKeySpecTest(String name) {
+        super(name);
+    }
+
+
+    /**
+     * Test #1 for <code>RSAPublicKeySpec</code> constructor
+     * Assertion: Constructs <code>RSAPublicKeySpec</code>
+     * object using valid parameters
+     */
+    public final void testRSAPublicKeySpec01() {
+        KeySpec ks =
+            new RSAPublicKeySpec(BigInteger.valueOf(1234567890L),
+                                 BigInteger.valueOf(3L));
+        
+        assertTrue(ks instanceof RSAPublicKeySpec);
+    }
+
+    /**
+     * Test #2 for <code>RSAPublicKeySpec</code> constructor
+     * Assertion: Constructs <code>RSAPublicKeySpec</code>
+     * object using valid parameters
+     */
+    public final void testRSAPublicKeySpec02() {
+        KeySpec ks =
+            new RSAPublicKeySpec(null, null);
+
+        assertTrue(ks instanceof RSAPublicKeySpec);
+    }
+    
+    /**
+     * Test for <code>getModulus()</code> method<br>
+     * Assertion: returns modulus
+     */
+    public final void testGetModulus() {
+        RSAPublicKeySpec rpks =
+            new RSAPublicKeySpec(BigInteger.valueOf(1234567890L),
+                                 BigInteger.valueOf(3L));
+        assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus()));
+    }
+
+    /**
+     * Test for <code>getPublicExponent()</code> method<br>
+     * Assertion: returns public exponent
+     */
+    public final void testGetPublicExponent() {
+        RSAPublicKeySpec rpks =
+            new RSAPublicKeySpec(BigInteger.valueOf(3L),
+                                 BigInteger.valueOf(1234567890L));
+        assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent()));
+    }
+
+}

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/X509EncodedKeySpecTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/X509EncodedKeySpecTest.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/spec/X509EncodedKeySpecTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/X509EncodedKeySpecTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/X509EncodedKeySpecTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/spec/X509EncodedKeySpecTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/X509EncodedKeySpecTest.java Tue Jun 20 01:11:04 2006
@@ -19,12 +19,13 @@
 * @version $Revision$
 */
 
-package java.security.spec;
+package org.apache.harmony.security.tests.java.security.spec;
 
+import java.security.spec.EncodedKeySpec;
+import java.security.spec.X509EncodedKeySpec;
 import java.util.Arrays;
 
 import junit.framework.TestCase;
-
 
 /**
  * Tests for <code>X509EncodedKeySpec</code> class fields and methods

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateEncodingExceptionTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateEncodingExceptionTest.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/CertificateEncodingExceptionTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateEncodingExceptionTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateEncodingExceptionTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateEncodingExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateEncodingExceptionTest.java Tue Jun 20 01:11:04 2006
@@ -1,111 +1,110 @@
-/*
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-/**
-* @author Vera Y. Petrashkova
-* @version $Revision$
-*/
-
-package javax.security.cert;
-
-import javax.security.cert.CertificateEncodingException;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>DigestException</code> class constructors and methods.
- * 
- */
-public class CertificateEncodingExceptionTest extends TestCase {
-
-    public static void main(String[] args) {
-    }
-
-    /**
-     * Constructor for CertificateEncodingExceptionTests.
-     * 
-     * @param arg0
-     */
-    public CertificateEncodingExceptionTest(String arg0) {
-        super(arg0);
-    }
-
-    static String[] msgs = {
-            "",
-            "Check new message",
-            "Check new message Check new message Check new message Check new message Check new message" };
-
-    static Throwable tCause = new Throwable("Throwable for exception");
-
-    static String createErr(Exception tE, Exception eE) {
-        return "CertificateEncodingException: ".concat(tE.toString()).concat(
-                " is not equal to caught exception: ").concat(eE.toString());
-    }
-
-    /**
-     * Test for <code>CertificateEncodingException()</code> constructor
-     * Assertion: constructs CertificateEncodingException with no detail message
-     */
-    public void testCertificateEncodingException01() {
-        CertificateEncodingException tE = new CertificateEncodingException();
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-    /**
-     * Test for <code>CertificateEncodingException(String)</code> constructor
-     * Assertion: constructs CertificateEncodingException with detail message
-     * msg. Parameter <code>msg</code> is not null.
-     */
-    public void testCertificateEncodingException02() {
-        CertificateEncodingException tE;
-        for (int i = 0; i < msgs.length; i++) {
-            tE = new CertificateEncodingException(msgs[i]);
-            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
-                    .getMessage(), msgs[i]);
-            assertNull("getCause() must return null", tE.getCause());
-            try {
-                throw tE;
-            } catch (Exception e) {
-                assertTrue(createErr(tE, e), tE.equals(e));
-            }
-        }
-    }
-
-    /**
-     * Test for <code>CertificateEncodingException(String)</code> constructor
-     * Assertion: constructs CertificateEncodingException when <code>msg</code>
-     * is null
-     */
-    public void testCertificateEncodingException03() {
-        String msg = null;
-        CertificateEncodingException tE = new CertificateEncodingException(msg);
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-}
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/**
+* @author Vera Y. Petrashkova
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.javax.security.cert;
+
+import javax.security.cert.CertificateEncodingException;
+
+import junit.framework.TestCase;
+
+/**
+ * Tests for <code>DigestException</code> class constructors and methods.
+ * 
+ */
+public class CertificateEncodingExceptionTest extends TestCase {
+
+    public static void main(String[] args) {
+    }
+
+    /**
+     * Constructor for CertificateEncodingExceptionTests.
+     * 
+     * @param arg0
+     */
+    public CertificateEncodingExceptionTest(String arg0) {
+        super(arg0);
+    }
+
+    static String[] msgs = {
+            "",
+            "Check new message",
+            "Check new message Check new message Check new message Check new message Check new message" };
+
+    static Throwable tCause = new Throwable("Throwable for exception");
+
+    static String createErr(Exception tE, Exception eE) {
+        return "CertificateEncodingException: ".concat(tE.toString()).concat(
+                " is not equal to caught exception: ").concat(eE.toString());
+    }
+
+    /**
+     * Test for <code>CertificateEncodingException()</code> constructor
+     * Assertion: constructs CertificateEncodingException with no detail message
+     */
+    public void testCertificateEncodingException01() {
+        CertificateEncodingException tE = new CertificateEncodingException();
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+    /**
+     * Test for <code>CertificateEncodingException(String)</code> constructor
+     * Assertion: constructs CertificateEncodingException with detail message
+     * msg. Parameter <code>msg</code> is not null.
+     */
+    public void testCertificateEncodingException02() {
+        CertificateEncodingException tE;
+        for (int i = 0; i < msgs.length; i++) {
+            tE = new CertificateEncodingException(msgs[i]);
+            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
+                    .getMessage(), msgs[i]);
+            assertNull("getCause() must return null", tE.getCause());
+            try {
+                throw tE;
+            } catch (Exception e) {
+                assertTrue(createErr(tE, e), tE.equals(e));
+            }
+        }
+    }
+
+    /**
+     * Test for <code>CertificateEncodingException(String)</code> constructor
+     * Assertion: constructs CertificateEncodingException when <code>msg</code>
+     * is null
+     */
+    public void testCertificateEncodingException03() {
+        String msg = null;
+        CertificateEncodingException tE = new CertificateEncodingException(msg);
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+}

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExceptionTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateExceptionTest.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/CertificateExceptionTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExceptionTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateExceptionTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExceptionTest.java Tue Jun 20 01:11:04 2006
@@ -1,111 +1,111 @@
-/*
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-/**
-* @author Vera Y. Petrashkova
-* @version $Revision$
-*/
-
-package javax.security.cert;
-
-import javax.security.cert.CertificateException;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>DigestException</code> class constructors and methods.
- * 
- */
-public class CertificateExceptionTest extends TestCase {
-
-    public static void main(String[] args) {
-    }
-
-    /**
-     * Constructor for CertificateExceptionTests.
-     * 
-     * @param arg0
-     */
-    public CertificateExceptionTest(String arg0) {
-        super(arg0);
-    }
-
-    static String[] msgs = {
-            "",
-            "Check new message",
-            "Check new message Check new message Check new message Check new message Check new message" };
-
-    static Throwable tCause = new Throwable("Throwable for exception");
-
-    static String createErr(Exception tE, Exception eE) {
-        return "CertificateException: ".concat(tE.toString()).concat(
-                " is not equal to caught exception: ").concat(eE.toString());
-    }
-
-    /**
-     * Test for <code>CertificateException()</code> constructor Assertion:
-     * constructs CertificateException with no detail message
-     */
-    public void testCertificateException01() {
-        CertificateException tE = new CertificateException();
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-    /**
-     * Test for <code>CertificateException(String)</code> constructor
-     * Assertion: constructs CertificateException with detail message msg.
-     * Parameter <code>msg</code> is not null.
-     */
-    public void testCertificateException02() {
-        CertificateException tE;
-        for (int i = 0; i < msgs.length; i++) {
-            tE = new CertificateException(msgs[i]);
-            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
-                    .getMessage(), msgs[i]);
-            assertNull("getCause() must return null", tE.getCause());
-            try {
-                throw tE;
-            } catch (Exception e) {
-                assertTrue(createErr(tE, e), tE.equals(e));
-            }
-        }
-    }
-
-    /**
-     * Test for <code>CertificateException(String)</code> constructor
-     * Assertion: constructs CertificateException when <code>msg</code> is
-     * null
-     */
-    public void testCertificateException03() {
-        String msg = null;
-        CertificateException tE = new CertificateException(msg);
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-}
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/**
+* @author Vera Y. Petrashkova
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.javax.security.cert;
+
+import javax.security.cert.CertificateException;
+
+import junit.framework.TestCase;
+
+
+/**
+ * Tests for <code>DigestException</code> class constructors and methods.
+ * 
+ */
+public class CertificateExceptionTest extends TestCase {
+
+    public static void main(String[] args) {
+    }
+
+    /**
+     * Constructor for CertificateExceptionTests.
+     * 
+     * @param arg0
+     */
+    public CertificateExceptionTest(String arg0) {
+        super(arg0);
+    }
+
+    static String[] msgs = {
+            "",
+            "Check new message",
+            "Check new message Check new message Check new message Check new message Check new message" };
+
+    static Throwable tCause = new Throwable("Throwable for exception");
+
+    static String createErr(Exception tE, Exception eE) {
+        return "CertificateException: ".concat(tE.toString()).concat(
+                " is not equal to caught exception: ").concat(eE.toString());
+    }
+
+    /**
+     * Test for <code>CertificateException()</code> constructor Assertion:
+     * constructs CertificateException with no detail message
+     */
+    public void testCertificateException01() {
+        CertificateException tE = new CertificateException();
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+    /**
+     * Test for <code>CertificateException(String)</code> constructor
+     * Assertion: constructs CertificateException with detail message msg.
+     * Parameter <code>msg</code> is not null.
+     */
+    public void testCertificateException02() {
+        CertificateException tE;
+        for (int i = 0; i < msgs.length; i++) {
+            tE = new CertificateException(msgs[i]);
+            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
+                    .getMessage(), msgs[i]);
+            assertNull("getCause() must return null", tE.getCause());
+            try {
+                throw tE;
+            } catch (Exception e) {
+                assertTrue(createErr(tE, e), tE.equals(e));
+            }
+        }
+    }
+
+    /**
+     * Test for <code>CertificateException(String)</code> constructor
+     * Assertion: constructs CertificateException when <code>msg</code> is
+     * null
+     */
+    public void testCertificateException03() {
+        String msg = null;
+        CertificateException tE = new CertificateException(msg);
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+}

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExpiredExceptionTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateExpiredExceptionTest.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/CertificateExpiredExceptionTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExpiredExceptionTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateExpiredExceptionTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateExpiredExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExpiredExceptionTest.java Tue Jun 20 01:11:04 2006
@@ -1,111 +1,111 @@
-/*
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-/**
-* @author Vera Y. Petrashkova
-* @version $Revision$
-*/
-
-package javax.security.cert;
-
-import javax.security.cert.CertificateExpiredException;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>DigestException</code> class constructors and methods.
- * 
- */
-public class CertificateExpiredExceptionTest extends TestCase {
-
-    public static void main(String[] args) {
-    }
-
-    /**
-     * Constructor for CertificateExpiredExceptionTests.
-     * 
-     * @param arg0
-     */
-    public CertificateExpiredExceptionTest(String arg0) {
-        super(arg0);
-    }
-
-    static String[] msgs = {
-            "",
-            "Check new message",
-            "Check new message Check new message Check new message Check new message Check new message" };
-
-    static Throwable tCause = new Throwable("Throwable for exception");
-
-    static String createErr(Exception tE, Exception eE) {
-        return "CertificateExpiredException: ".concat(tE.toString()).concat(
-                " is not equal to caught exception: ").concat(eE.toString());
-    }
-
-    /**
-     * Test for <code>CertificateExpiredException()</code> constructor
-     * Assertion: constructs CertificateExpiredException with no detail message
-     */
-    public void testCertificateExpiredException01() {
-        CertificateExpiredException tE = new CertificateExpiredException();
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-    /**
-     * Test for <code>CertificateExpiredException(String)</code> constructor
-     * Assertion: constructs CertificateExpiredException with detail message
-     * msg. Parameter <code>msg</code> is not null.
-     */
-    public void testCertificateExpiredException02() {
-        CertificateExpiredException tE;
-        for (int i = 0; i < msgs.length; i++) {
-            tE = new CertificateExpiredException(msgs[i]);
-            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
-                    .getMessage(), msgs[i]);
-            assertNull("getCause() must return null", tE.getCause());
-            try {
-                throw tE;
-            } catch (Exception e) {
-                assertTrue(createErr(tE, e), tE.equals(e));
-            }
-        }
-    }
-
-    /**
-     * Test for <code>CertificateExpiredException(String)</code> constructor
-     * Assertion: constructs CertificateExpiredException when <code>msg</code>
-     * is null
-     */
-    public void testCertificateExpiredException03() {
-        String msg = null;
-        CertificateExpiredException tE = new CertificateExpiredException(msg);
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-}
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/**
+* @author Vera Y. Petrashkova
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.javax.security.cert;
+
+import javax.security.cert.CertificateExpiredException;
+
+import junit.framework.TestCase;
+
+
+/**
+ * Tests for <code>DigestException</code> class constructors and methods.
+ * 
+ */
+public class CertificateExpiredExceptionTest extends TestCase {
+
+    public static void main(String[] args) {
+    }
+
+    /**
+     * Constructor for CertificateExpiredExceptionTests.
+     * 
+     * @param arg0
+     */
+    public CertificateExpiredExceptionTest(String arg0) {
+        super(arg0);
+    }
+
+    static String[] msgs = {
+            "",
+            "Check new message",
+            "Check new message Check new message Check new message Check new message Check new message" };
+
+    static Throwable tCause = new Throwable("Throwable for exception");
+
+    static String createErr(Exception tE, Exception eE) {
+        return "CertificateExpiredException: ".concat(tE.toString()).concat(
+                " is not equal to caught exception: ").concat(eE.toString());
+    }
+
+    /**
+     * Test for <code>CertificateExpiredException()</code> constructor
+     * Assertion: constructs CertificateExpiredException with no detail message
+     */
+    public void testCertificateExpiredException01() {
+        CertificateExpiredException tE = new CertificateExpiredException();
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+    /**
+     * Test for <code>CertificateExpiredException(String)</code> constructor
+     * Assertion: constructs CertificateExpiredException with detail message
+     * msg. Parameter <code>msg</code> is not null.
+     */
+    public void testCertificateExpiredException02() {
+        CertificateExpiredException tE;
+        for (int i = 0; i < msgs.length; i++) {
+            tE = new CertificateExpiredException(msgs[i]);
+            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
+                    .getMessage(), msgs[i]);
+            assertNull("getCause() must return null", tE.getCause());
+            try {
+                throw tE;
+            } catch (Exception e) {
+                assertTrue(createErr(tE, e), tE.equals(e));
+            }
+        }
+    }
+
+    /**
+     * Test for <code>CertificateExpiredException(String)</code> constructor
+     * Assertion: constructs CertificateExpiredException when <code>msg</code>
+     * is null
+     */
+    public void testCertificateExpiredException03() {
+        String msg = null;
+        CertificateExpiredException tE = new CertificateExpiredException(msg);
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+}

Copied: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateNotYetValidExceptionTest.java (from r414728, incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateNotYetValidExceptionTest.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/CertificateNotYetValidExceptionTest.java?p2=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateNotYetValidExceptionTest.java&p1=incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateNotYetValidExceptionTest.java&r1=414728&r2=415555&rev=415555&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/javax/security/cert/CertificateNotYetValidExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateNotYetValidExceptionTest.java Tue Jun 20 01:11:04 2006
@@ -1,114 +1,114 @@
-/*
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-/**
-* @author Vera Y. Petrashkova
-* @version $Revision$
-*/
-
-package javax.security.cert;
-
-import javax.security.cert.CertificateNotYetValidException;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>DigestException</code> class constructors and methods.
- * 
- */
-public class CertificateNotYetValidExceptionTest extends TestCase {
-
-    public static void main(String[] args) {
-    }
-
-    /**
-     * Constructor for CertificateNotYetValidExceptionTests.
-     * 
-     * @param arg0
-     */
-    public CertificateNotYetValidExceptionTest(String arg0) {
-        super(arg0);
-    }
-
-    static String[] msgs = {
-            "",
-            "Check new message",
-            "Check new message Check new message Check new message Check new message Check new message" };
-
-    static Throwable tCause = new Throwable("Throwable for exception");
-
-    static String createErr(Exception tE, Exception eE) {
-        return "CertificateNotYetValidException: ".concat(tE.toString())
-                .concat(" is not equal to caught exception: ").concat(
-                        eE.toString());
-    }
-
-    /**
-     * Test for <code>CertificateNotYetValidException()</code> constructor
-     * Assertion: constructs CertificateNotYetValidException with no detail
-     * message
-     */
-    public void testCertificateNotYetValidException01() {
-        CertificateNotYetValidException tE = new CertificateNotYetValidException();
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-    /**
-     * Test for <code>CertificateNotYetValidException(String)</code>
-     * constructor Assertion: constructs CertificateNotYetValidException with
-     * detail message msg. Parameter <code>msg</code> is not null.
-     */
-    public void testCertificateNotYetValidException02() {
-        CertificateNotYetValidException tE;
-        for (int i = 0; i < msgs.length; i++) {
-            tE = new CertificateNotYetValidException(msgs[i]);
-            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
-                    .getMessage(), msgs[i]);
-            assertNull("getCause() must return null", tE.getCause());
-            try {
-                throw tE;
-            } catch (Exception e) {
-                assertTrue(createErr(tE, e), tE.equals(e));
-            }
-        }
-    }
-
-    /**
-     * Test for <code>CertificateNotYetValidException(String)</code>
-     * constructor Assertion: constructs CertificateNotYetValidException when
-     * <code>msg</code> is null
-     */
-    public void testCertificateNotYetValidException03() {
-        String msg = null;
-        CertificateNotYetValidException tE = new CertificateNotYetValidException(
-                msg);
-        assertNull("getMessage() must return null.", tE.getMessage());
-        assertNull("getCause() must return null", tE.getCause());
-        try {
-            throw tE;
-        } catch (Exception e) {
-            assertTrue(createErr(tE, e), tE.equals(e));
-        }
-    }
-
-}
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/**
+* @author Vera Y. Petrashkova
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.javax.security.cert;
+
+import javax.security.cert.CertificateNotYetValidException;
+
+import junit.framework.TestCase;
+
+
+/**
+ * Tests for <code>DigestException</code> class constructors and methods.
+ * 
+ */
+public class CertificateNotYetValidExceptionTest extends TestCase {
+
+    public static void main(String[] args) {
+    }
+
+    /**
+     * Constructor for CertificateNotYetValidExceptionTests.
+     * 
+     * @param arg0
+     */
+    public CertificateNotYetValidExceptionTest(String arg0) {
+        super(arg0);
+    }
+
+    static String[] msgs = {
+            "",
+            "Check new message",
+            "Check new message Check new message Check new message Check new message Check new message" };
+
+    static Throwable tCause = new Throwable("Throwable for exception");
+
+    static String createErr(Exception tE, Exception eE) {
+        return "CertificateNotYetValidException: ".concat(tE.toString())
+                .concat(" is not equal to caught exception: ").concat(
+                        eE.toString());
+    }
+
+    /**
+     * Test for <code>CertificateNotYetValidException()</code> constructor
+     * Assertion: constructs CertificateNotYetValidException with no detail
+     * message
+     */
+    public void testCertificateNotYetValidException01() {
+        CertificateNotYetValidException tE = new CertificateNotYetValidException();
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+    /**
+     * Test for <code>CertificateNotYetValidException(String)</code>
+     * constructor Assertion: constructs CertificateNotYetValidException with
+     * detail message msg. Parameter <code>msg</code> is not null.
+     */
+    public void testCertificateNotYetValidException02() {
+        CertificateNotYetValidException tE;
+        for (int i = 0; i < msgs.length; i++) {
+            tE = new CertificateNotYetValidException(msgs[i]);
+            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
+                    .getMessage(), msgs[i]);
+            assertNull("getCause() must return null", tE.getCause());
+            try {
+                throw tE;
+            } catch (Exception e) {
+                assertTrue(createErr(tE, e), tE.equals(e));
+            }
+        }
+    }
+
+    /**
+     * Test for <code>CertificateNotYetValidException(String)</code>
+     * constructor Assertion: constructs CertificateNotYetValidException when
+     * <code>msg</code> is null
+     */
+    public void testCertificateNotYetValidException03() {
+        String msg = null;
+        CertificateNotYetValidException tE = new CertificateNotYetValidException(
+                msg);
+        assertNull("getMessage() must return null.", tE.getMessage());
+        assertNull("getCause() must return null", tE.getCause());
+        try {
+            throw tE;
+        } catch (Exception e) {
+            assertTrue(createErr(tE, e), tE.equals(e));
+        }
+    }
+
+}



Mime
View raw message