harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r406897 - /incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/
Date Tue, 16 May 2006 10:35:50 GMT
Author: smishura
Date: Tue May 16 03:35:49 2006
New Revision: 406897

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

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLHandshakeExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLKeyExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLPeerUnverifiedExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLProtocolExceptionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLExceptionTest.java?rev=406897&r1=406896&r2=406897&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLExceptionTest.java
Tue May 16 03:35:49 2006
@@ -45,29 +45,4 @@
                 new SSLException(excSSL), new SSLException(cause),
                 new SSLException(msgs[1], cause) };
     }
-
-    protected void assertDeserialized(Object oref, Object otest) {
-        SSLException ref = (SSLException) oref;
-        SSLException test = (SSLException) otest;
-        Throwable th = ref.getCause();
-        String s = ref.getMessage();
-        String rS = test.getMessage();
-        if (s == null) {
-            assertNull("Not null result message", rS);
-        } 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);
-            }
-        }
-    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLHandshakeExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLHandshakeExceptionTest.java?rev=406897&r1=406896&r2=406897&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLHandshakeExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLHandshakeExceptionTest.java
Tue May 16 03:35:49 2006
@@ -42,17 +42,6 @@
                 new SSLHandshakeException(msgs[0]), new SSLHandshakeException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        SSLHandshakeException ref = (SSLHandshakeException) oref;
-        SSLHandshakeException test = (SSLHandshakeException) 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(SSLHandshakeExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLKeyExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLKeyExceptionTest.java?rev=406897&r1=406896&r2=406897&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLKeyExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLKeyExceptionTest.java
Tue May 16 03:35:49 2006
@@ -42,17 +42,6 @@
                 new SSLKeyException(msgs[0]), new SSLKeyException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        SSLKeyException ref = (SSLKeyException) oref;
-        SSLKeyException test = (SSLKeyException) 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(SSLKeyExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLPeerUnverifiedExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLPeerUnverifiedExceptionTest.java?rev=406897&r1=406896&r2=406897&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLPeerUnverifiedExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLPeerUnverifiedExceptionTest.java
Tue May 16 03:35:49 2006
@@ -42,17 +42,6 @@
                 new SSLPeerUnverifiedException(msgs[0]), new SSLPeerUnverifiedException(msgs[1])
};
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        SSLPeerUnverifiedException ref = (SSLPeerUnverifiedException) oref;
-        SSLPeerUnverifiedException test = (SSLPeerUnverifiedException) 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(SSLPeerUnverifiedExceptionTest.class);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLProtocolExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLProtocolExceptionTest.java?rev=406897&r1=406896&r2=406897&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLProtocolExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLProtocolExceptionTest.java
Tue May 16 03:35:49 2006
@@ -42,17 +42,6 @@
                 new SSLProtocolException(msgs[0]), new SSLProtocolException(msgs[1]) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
-        SSLProtocolException ref = (SSLProtocolException) oref;
-        SSLProtocolException test = (SSLProtocolException) 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(SSLProtocolExceptionTest.class);
     }



Mime
View raw message