harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r443539 [24/29] - in /incubator/harmony/enhanced/classlib/trunk/modules/security: ./ .settings/ META-INF/ make/ src/main/java/common/java/security/ src/main/java/common/java/security/acl/ src/main/java/common/java/security/cert/ src/main/ja...
Date Fri, 15 Sep 2006 01:18:16 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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 Thu Sep 14 18:17:39 2006
@@ -1,113 +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 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));
-        }
-    }
-
-}
+/*
+ *  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));
+        }
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/InvalidParameterSpecExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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 Thu Sep 14 18:17:39 2006
@@ -1,238 +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 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()));
-    }
-
-}
+/*
+ *  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()));
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPrivateCrtKeySpecTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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 Thu Sep 14 18:17:39 2006
@@ -1,92 +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 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()));
-    }
-
-}
+/*
+ *  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()));
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/RSAPublicKeySpecTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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 Thu Sep 14 18:17:39 2006
@@ -1,110 +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 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));
-        }
-    }
-
-}
+/*
+ *  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));
+        }
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateEncodingExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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 Thu Sep 14 18:17:39 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 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));
-        }
-    }
-
-}
+/*
+ *  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));
+        }
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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 Thu Sep 14 18:17:39 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 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));
-        }
-    }
-
-}
+/*
+ *  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));
+        }
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateExpiredExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/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 Thu Sep 14 18:17:39 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 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));
-        }
-    }
-
-}
+/*
+ *  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));
+        }
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateNotYetValidExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateParsingExceptionTest.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/CertificateParsingExceptionTest.java?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateParsingExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateParsingExceptionTest.java Thu Sep 14 18:17:39 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 org.apache.harmony.security.tests.javax.security.cert;
-
-import javax.security.cert.CertificateParsingException;
-
-import junit.framework.TestCase;
-
-
-/**
- * Tests for <code>DigestException</code> class constructors and methods.
- * 
- */
-public class CertificateParsingExceptionTest extends TestCase {
-
-    public static void main(String[] args) {
-    }
-
-    /**
-     * Constructor for CertificateParsingExceptionTests.
-     * 
-     * @param arg0
-     */
-    public CertificateParsingExceptionTest(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 "CertificateParsingException: ".concat(tE.toString()).concat(
-                " is not equal to caught exception: ").concat(eE.toString());
-    }
-
-    /**
-     * Test for <code>CertificateParsingException()</code> constructor
-     * Assertion: constructs CertificateParsingException with no detail message
-     */
-    public void testCertificateParsingException01() {
-        CertificateParsingException tE = new CertificateParsingException();
-        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>CertificateParsingException(String)</code> constructor
-     * Assertion: constructs CertificateParsingException with detail message
-     * msg. Parameter <code>msg</code> is not null.
-     */
-    public void testCertificateParsingException02() {
-        CertificateParsingException tE;
-        for (int i = 0; i < msgs.length; i++) {
-            tE = new CertificateParsingException(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>CertificateParsingException(String)</code> constructor
-     * Assertion: constructs CertificateParsingException when <code>msg</code>
-     * is null
-     */
-    public void testCertificateParsingException03() {
-        String msg = null;
-        CertificateParsingException tE = new CertificateParsingException(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.CertificateParsingException;
+
+import junit.framework.TestCase;
+
+
+/**
+ * Tests for <code>DigestException</code> class constructors and methods.
+ * 
+ */
+public class CertificateParsingExceptionTest extends TestCase {
+
+    public static void main(String[] args) {
+    }
+
+    /**
+     * Constructor for CertificateParsingExceptionTests.
+     * 
+     * @param arg0
+     */
+    public CertificateParsingExceptionTest(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 "CertificateParsingException: ".concat(tE.toString()).concat(
+                " is not equal to caught exception: ").concat(eE.toString());
+    }
+
+    /**
+     * Test for <code>CertificateParsingException()</code> constructor
+     * Assertion: constructs CertificateParsingException with no detail message
+     */
+    public void testCertificateParsingException01() {
+        CertificateParsingException tE = new CertificateParsingException();
+        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>CertificateParsingException(String)</code> constructor
+     * Assertion: constructs CertificateParsingException with detail message
+     * msg. Parameter <code>msg</code> is not null.
+     */
+    public void testCertificateParsingException02() {
+        CertificateParsingException tE;
+        for (int i = 0; i < msgs.length; i++) {
+            tE = new CertificateParsingException(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>CertificateParsingException(String)</code> constructor
+     * Assertion: constructs CertificateParsingException when <code>msg</code>
+     * is null
+     */
+    public void testCertificateParsingException03() {
+        String msg = null;
+        CertificateParsingException tE = new CertificateParsingException(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));
+        }
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateParsingExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateTest.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/CertificateTest.java?view=diff&rev=443539&r1=443538&r2=443539
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateTest.java Thu Sep 14 18:17:39 2006
@@ -1,156 +1,156 @@
-/*
- *  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 Alexander Y. Kleymenov
-* @version $Revision$
-*/
-
-package org.apache.harmony.security.tests.javax.security.cert;
-
-import java.security.InvalidKeyException;
-import java.security.NoSuchAlgorithmException;
-import java.security.NoSuchProviderException;
-import java.security.PublicKey;
-import java.security.SignatureException;
-
-import javax.security.cert.Certificate;
-import javax.security.cert.CertificateEncodingException;
-import javax.security.cert.CertificateException;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- */
-
-public class CertificateTest extends TestCase {
-
-    /**
-     * The stub class used for testing of non abstract methods.
-     */
-    private class TBTCert extends Certificate {
-        public byte[] getEncoded()
-                throws CertificateEncodingException {
-            return null;
-        } 
-
-        public void verify(PublicKey key)
-                throws CertificateException, NoSuchAlgorithmException,
-                       InvalidKeyException, NoSuchProviderException,
-                       SignatureException {
-        }
-
-        public void verify(PublicKey key, String sigProvider)
-                throws CertificateException, NoSuchAlgorithmException, 
-                       InvalidKeyException, NoSuchProviderException,
-                       SignatureException {
-        }
-
-        public String toString() {
-            return null;
-        }
-
-        public PublicKey getPublicKey() {
-            return null;
-        }
-    }
-
-    /**
-     * equals(Object obj) method testing. Tests the correctnel of equal
-     * operation: it should be reflexive, symmetric, transitive, consistent
-     * and should be false on null object.
-     */
-    public void testEquals() {
-        TBTCert tbt_cert = new TBTCert() {
-            public byte[] getEncoded() {
-                return new byte[] {1, 2, 3};
-            }
-        };
-
-        TBTCert tbt_cert_1 = new TBTCert() {
-            public byte[] getEncoded() {
-                return new byte[] {1, 2, 3};
-            }
-        };
-
-        TBTCert tbt_cert_2 = new TBTCert() {
-            public byte[] getEncoded() {
-                return new byte[] {1, 2, 3};
-            }
-        };
-
-        TBTCert tbt_cert_3 = new TBTCert() {
-            public byte[] getEncoded() {
-                return new byte[] {3, 2, 1};
-            }
-        };
-
-        // checking for reflexive law:
-        assertTrue("The equivalence relation should be reflexive.",
-                                                tbt_cert.equals(tbt_cert));
-
-        assertEquals("The Certificates with equal encoded form should be equal",
-                                                tbt_cert, tbt_cert_1);
-        // checking for symmetric law:
-        assertTrue("The equivalence relation should be symmetric.",
-                                                tbt_cert_1.equals(tbt_cert));
-
-        assertEquals("The Certificates with equal encoded form should be equal",
-                                                tbt_cert_1, tbt_cert_2);
-        // checking for transitive law:
-        assertTrue("The equivalence relation should be transitive.",
-                                                tbt_cert.equals(tbt_cert_2));
-
-        assertFalse("Should not be equal to null object.",
-                                                tbt_cert.equals(null));
-
-        assertFalse("The Certificates with differing encoded form "
-                    + "should not be equal", tbt_cert.equals(tbt_cert_3));
-        assertFalse("The Certificates should not be equals to the object "
-                    + "which is not an instance of Certificate", 
-                                                tbt_cert.equals(new Object()));
-    }
-
-    /**
-     * hashCode() method testing.
-     */
-    public void testHashCode() {
-        TBTCert tbt_cert = new TBTCert() {
-            public byte[] getEncoded() {
-                return new byte[] {1, 2, 3};
-            }
-        };
-        TBTCert tbt_cert_1 = new TBTCert() {
-            public byte[] getEncoded() {
-                return new byte[] {1, 2, 3};
-            }
-        };
-
-        assertTrue("Equal objects should have the same hash codes.",
-                                    tbt_cert.hashCode() == tbt_cert_1.hashCode());
-    }
-
-    public static Test suite() {
-        return new TestSuite(CertificateTest.class);
-    }
-
-    public static void main(String[] args) {
-        junit.textui.TestRunner.run(suite());
-    }
-}
-
+/*
+ *  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 Alexander Y. Kleymenov
+* @version $Revision$
+*/
+
+package org.apache.harmony.security.tests.javax.security.cert;
+
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+import java.security.NoSuchProviderException;
+import java.security.PublicKey;
+import java.security.SignatureException;
+
+import javax.security.cert.Certificate;
+import javax.security.cert.CertificateEncodingException;
+import javax.security.cert.CertificateException;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ */
+
+public class CertificateTest extends TestCase {
+
+    /**
+     * The stub class used for testing of non abstract methods.
+     */
+    private class TBTCert extends Certificate {
+        public byte[] getEncoded()
+                throws CertificateEncodingException {
+            return null;
+        } 
+
+        public void verify(PublicKey key)
+                throws CertificateException, NoSuchAlgorithmException,
+                       InvalidKeyException, NoSuchProviderException,
+                       SignatureException {
+        }
+
+        public void verify(PublicKey key, String sigProvider)
+                throws CertificateException, NoSuchAlgorithmException, 
+                       InvalidKeyException, NoSuchProviderException,
+                       SignatureException {
+        }
+
+        public String toString() {
+            return null;
+        }
+
+        public PublicKey getPublicKey() {
+            return null;
+        }
+    }
+
+    /**
+     * equals(Object obj) method testing. Tests the correctnel of equal
+     * operation: it should be reflexive, symmetric, transitive, consistent
+     * and should be false on null object.
+     */
+    public void testEquals() {
+        TBTCert tbt_cert = new TBTCert() {
+            public byte[] getEncoded() {
+                return new byte[] {1, 2, 3};
+            }
+        };
+
+        TBTCert tbt_cert_1 = new TBTCert() {
+            public byte[] getEncoded() {
+                return new byte[] {1, 2, 3};
+            }
+        };
+
+        TBTCert tbt_cert_2 = new TBTCert() {
+            public byte[] getEncoded() {
+                return new byte[] {1, 2, 3};
+            }
+        };
+
+        TBTCert tbt_cert_3 = new TBTCert() {
+            public byte[] getEncoded() {
+                return new byte[] {3, 2, 1};
+            }
+        };
+
+        // checking for reflexive law:
+        assertTrue("The equivalence relation should be reflexive.",
+                                                tbt_cert.equals(tbt_cert));
+
+        assertEquals("The Certificates with equal encoded form should be equal",
+                                                tbt_cert, tbt_cert_1);
+        // checking for symmetric law:
+        assertTrue("The equivalence relation should be symmetric.",
+                                                tbt_cert_1.equals(tbt_cert));
+
+        assertEquals("The Certificates with equal encoded form should be equal",
+                                                tbt_cert_1, tbt_cert_2);
+        // checking for transitive law:
+        assertTrue("The equivalence relation should be transitive.",
+                                                tbt_cert.equals(tbt_cert_2));
+
+        assertFalse("Should not be equal to null object.",
+                                                tbt_cert.equals(null));
+
+        assertFalse("The Certificates with differing encoded form "
+                    + "should not be equal", tbt_cert.equals(tbt_cert_3));
+        assertFalse("The Certificates should not be equals to the object "
+                    + "which is not an instance of Certificate", 
+                                                tbt_cert.equals(new Object()));
+    }
+
+    /**
+     * hashCode() method testing.
+     */
+    public void testHashCode() {
+        TBTCert tbt_cert = new TBTCert() {
+            public byte[] getEncoded() {
+                return new byte[] {1, 2, 3};
+            }
+        };
+        TBTCert tbt_cert_1 = new TBTCert() {
+            public byte[] getEncoded() {
+                return new byte[] {1, 2, 3};
+            }
+        };
+
+        assertTrue("Equal objects should have the same hash codes.",
+                                    tbt_cert.hashCode() == tbt_cert_1.hashCode());
+    }
+
+    public static Test suite() {
+        return new TestSuite(CertificateTest.class);
+    }
+
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(suite());
+    }
+}
+

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/CertificateTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message