harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r406907 - in /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common: java/security/cert/serialization/ java/security/serialization/ java/security/spec/serialization/ javax/security/cert/serialization/
Date Tue, 16 May 2006 11:06:00 GMT
Author: smishura
Date: Tue May 16 04:05:51 2006
New Revision: 406907

URL: http://svn.apache.org/viewcvs?rev=406907&view=rev
Log:
Removing assertDeserialized methods - Throwable objects are compared by testing framework's comparator

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CRLExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathBuilderExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertStoreExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateEncodingExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExpiredExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateNotYetValidExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateParsingExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/DigestExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/GeneralSecurityExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidAlgorithmParameterExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidKeyExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidParameterExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyManagementExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyStoreExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchAlgorithmExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchProviderExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/ProviderExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/SignatureExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableEntryExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableKeyExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidKeySpecExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidParameterSpecExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateEncodingExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExpiredExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateNotYetValidExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateParsingExceptionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CRLExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CRLExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CRLExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CRLExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new CRLException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CRLException ref = (CRLException) oref;
-        CRLException test = (CRLException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CRLExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathBuilderExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathBuilderExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathBuilderExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathBuilderExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new CertPathBuilderException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertPathBuilderException ref = (CertPathBuilderException) oref;
-        CertPathBuilderException test = (CertPathBuilderException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertPathBuilderExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertStoreExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertStoreExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertStoreExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertStoreExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new CertStoreException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertStoreException ref = (CertStoreException) oref;
-        CertStoreException test = (CertStoreException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertStoreExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateEncodingExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateEncodingExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateEncodingExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateEncodingExceptionTest.java Tue May 16 04:05:51 2006
@@ -47,30 +47,6 @@
                 new CertificateEncodingException(new Throwable()), new CertificateEncodingException(th),
                 new CertificateEncodingException(msgs[1], dExc) };
     }
-
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateEncodingException ref = (CertificateEncodingException) oref;
-        CertificateEncodingException test = (CertificateEncodingException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
     
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateEncodingExceptionTest.class);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new CertificateException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateException ref = (CertificateException) oref;
-        CertificateException test = (CertificateException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExpiredExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExpiredExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExpiredExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateExpiredExceptionTest.java Tue May 16 04:05:51 2006
@@ -44,17 +44,6 @@
                 new CertificateExpiredException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateExpiredException ref = (CertificateExpiredException) oref;
-        CertificateExpiredException test = (CertificateExpiredException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateExpiredExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateNotYetValidExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateNotYetValidExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateNotYetValidExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateNotYetValidExceptionTest.java Tue May 16 04:05:51 2006
@@ -43,17 +43,6 @@
                 new CertificateNotYetValidException(msgs[1])};
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateNotYetValidException ref = (CertificateNotYetValidException) oref;
-        CertificateNotYetValidException test = (CertificateNotYetValidException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateNotYetValidExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateParsingExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateParsingExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateParsingExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertificateParsingExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new CertificateParsingException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateParsingException ref = (CertificateParsingException) oref;
-        CertificateParsingException test = (CertificateParsingException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateParsingExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/DigestExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/DigestExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/DigestExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/DigestExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new DigestException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        DigestException ref = (DigestException) oref;
-        DigestException test = (DigestException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(DigestExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/GeneralSecurityExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/GeneralSecurityExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/GeneralSecurityExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/GeneralSecurityExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new GeneralSecurityException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        GeneralSecurityException ref = (GeneralSecurityException) oref;
-        GeneralSecurityException test = (GeneralSecurityException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
        junit.textui.TestRunner.run(GeneralSecurityExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidAlgorithmParameterExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidAlgorithmParameterExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidAlgorithmParameterExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidAlgorithmParameterExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new InvalidAlgorithmParameterException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        InvalidAlgorithmParameterException ref = (InvalidAlgorithmParameterException) oref;
-        InvalidAlgorithmParameterException test = (InvalidAlgorithmParameterException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(InvalidAlgorithmParameterExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidKeyExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidKeyExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidKeyExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidKeyExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new InvalidKeyException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        InvalidKeyException ref = (InvalidKeyException) oref;
-        InvalidKeyException test = (InvalidKeyException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
        junit.textui.TestRunner.run(InvalidKeyExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidParameterExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidParameterExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidParameterExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/InvalidParameterExceptionTest.java Tue May 16 04:05:51 2006
@@ -45,17 +45,6 @@
                 };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        InvalidParameterException ref = (InvalidParameterException) oref;
-        InvalidParameterException test = (InvalidParameterException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(InvalidParameterExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new KeyException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        KeyException ref = (KeyException) oref;
-        KeyException test = (KeyException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(KeyExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyManagementExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyManagementExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyManagementExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyManagementExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new KeyManagementException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        KeyManagementException ref = (KeyManagementException) oref;
-        KeyManagementException test = (KeyManagementException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
          junit.textui.TestRunner.run(KeyManagementExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyStoreExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyStoreExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyStoreExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/KeyStoreExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new KeyStoreException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        KeyStoreException ref = (KeyStoreException) oref;
-        KeyStoreException test = (KeyStoreException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(KeyStoreExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchAlgorithmExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchAlgorithmExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchAlgorithmExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchAlgorithmExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new NoSuchAlgorithmException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        NoSuchAlgorithmException ref = (NoSuchAlgorithmException) oref;
-        NoSuchAlgorithmException test = (NoSuchAlgorithmException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
        junit.textui.TestRunner.run(NoSuchAlgorithmExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchProviderExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchProviderExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchProviderExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/NoSuchProviderExceptionTest.java Tue May 16 04:05:51 2006
@@ -43,17 +43,6 @@
                 new NoSuchProviderException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        NoSuchProviderException ref = (NoSuchProviderException) oref;
-        NoSuchProviderException test = (NoSuchProviderException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(NoSuchProviderExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/ProviderExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/ProviderExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/ProviderExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/ProviderExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new ProviderException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        ProviderException ref = (ProviderException) oref;
-        ProviderException test = (ProviderException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
        junit.textui.TestRunner.run(ProviderExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/SignatureExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/SignatureExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/SignatureExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/SignatureExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new SignatureException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        SignatureException ref = (SignatureException) oref;
-        SignatureException test = (SignatureException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
        junit.textui.TestRunner.run(SignatureExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableEntryExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableEntryExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableEntryExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableEntryExceptionTest.java Tue May 16 04:05:51 2006
@@ -43,17 +43,6 @@
                 new UnrecoverableEntryException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        UnrecoverableEntryException ref = (UnrecoverableEntryException) oref;
-        UnrecoverableEntryException test = (UnrecoverableEntryException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(UnrecoverableEntryExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableKeyExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableKeyExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableKeyExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/UnrecoverableKeyExceptionTest.java Tue May 16 04:05:51 2006
@@ -43,17 +43,6 @@
                 new UnrecoverableKeyException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        UnrecoverableKeyException ref = (UnrecoverableKeyException) oref;
-        UnrecoverableKeyException test = (UnrecoverableKeyException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(UnrecoverableKeyExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidKeySpecExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidKeySpecExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidKeySpecExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidKeySpecExceptionTest.java Tue May 16 04:05:51 2006
@@ -48,30 +48,6 @@
                 new InvalidKeySpecException(msgs[1], dExc) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        InvalidKeySpecException ref = (InvalidKeySpecException) oref;
-        InvalidKeySpecException test = (InvalidKeySpecException) otest;
-        String s = ref.getMessage();
-        Throwable th = ref.getCause();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-        if (th == null) {
-            assertNull(test.getCause());
-        } else {
-            Throwable th1 = test.getCause();
-            assertEquals(th1.getClass(), th.getClass());
-            String s1 = th.getMessage();
-            if (s1 == null) {
-                assertNull(th1.getMessage());
-            } else {
-                assertEquals(th1.getMessage(), s1);
-            }
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(InvalidKeySpecExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidParameterSpecExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidParameterSpecExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidParameterSpecExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/spec/serialization/InvalidParameterSpecExceptionTest.java Tue May 16 04:05:51 2006
@@ -43,17 +43,6 @@
                 new InvalidParameterSpecException(msgs[1])};
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        InvalidParameterSpecException ref = (InvalidParameterSpecException) oref;
-        InvalidParameterSpecException test = (InvalidParameterSpecException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(InvalidParameterSpecExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateEncodingExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateEncodingExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateEncodingExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateEncodingExceptionTest.java Tue May 16 04:05:51 2006
@@ -44,17 +44,6 @@
                 new CertificateEncodingException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateEncodingException ref = (CertificateEncodingException) oref;
-        CertificateEncodingException test = (CertificateEncodingException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateEncodingExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExceptionTest.java Tue May 16 04:05:51 2006
@@ -43,17 +43,6 @@
                 new CertificateException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateException ref = (CertificateException) oref;
-        CertificateException test = (CertificateException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExpiredExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExpiredExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExpiredExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateExpiredExceptionTest.java Tue May 16 04:05:51 2006
@@ -44,17 +44,6 @@
                 new CertificateExpiredException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateExpiredException ref = (CertificateExpiredException) oref;
-        CertificateExpiredException test = (CertificateExpiredException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateExpiredExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateNotYetValidExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateNotYetValidExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateNotYetValidExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateNotYetValidExceptionTest.java Tue May 16 04:05:51 2006
@@ -43,17 +43,6 @@
                 new CertificateNotYetValidException(msgs[1])};
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateNotYetValidException ref = (CertificateNotYetValidException) oref;
-        CertificateNotYetValidException test = (CertificateNotYetValidException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateNotYetValidExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateParsingExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateParsingExceptionTest.java?rev=406907&r1=406906&r2=406907&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateParsingExceptionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/javax/security/cert/serialization/CertificateParsingExceptionTest.java Tue May 16 04:05:51 2006
@@ -44,17 +44,6 @@
                 new CertificateParsingException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        CertificateParsingException ref = (CertificateParsingException) oref;
-        CertificateParsingException test = (CertificateParsingException) otest;
-        String s = ref.getMessage();
-        if (s == null) {
-            assertNull(test.getMessage());
-        } else {
-            assertEquals(test.getMessage(), s);
-        }
-    }
-
     public static void main(String[] args) {
         junit.textui.TestRunner.run(CertificateParsingExceptionTest.class);
     }



Mime
View raw message