harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r414136 - in /incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization: HandshakeCompletedEventTest.java SSLSessionBindingEventTest.java
Date Wed, 14 Jun 2006 07:52:25 GMT
Author: smishura
Date: Wed Jun 14 00:52:23 2006
New Revision: 414136

URL: http://svn.apache.org/viewvc?rev=414136&view=rev
Log:
Implementing SerializableAssert interface to provide class specific checks

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java?rev=414136&r1=414135&r2=414136&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java
Wed Jun 14 00:52:23 2006
@@ -16,6 +16,8 @@
 
 package javax.net.ssl.serialization;
 
+import java.io.Serializable;
+
 import javax.net.ssl.HandshakeCompletedEvent;
 import javax.net.ssl.SSLContext;
 import javax.net.ssl.SSLSocket;
@@ -27,7 +29,8 @@
  * 
  */
 
-public class HandshakeCompletedEventTest extends SerializationTest {
+public class HandshakeCompletedEventTest extends SerializationTest implements
+        SerializationTest.SerializableAssert {
 
     protected Object[] getData() {
         try {
@@ -42,7 +45,7 @@
         
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
+    public void assertDeserialized(Serializable oref, Serializable otest) {
         HandshakeCompletedEvent test = (HandshakeCompletedEvent) otest;
         test.getSession();
         test.getSocket();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java?rev=414136&r1=414135&r2=414136&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java
Wed Jun 14 00:52:23 2006
@@ -16,6 +16,8 @@
 
 package javax.net.ssl.serialization;
 
+import java.io.Serializable;
+
 import javax.net.ssl.SSLContext;
 import javax.net.ssl.SSLSessionBindingEvent;
 import javax.net.ssl.SSLSocket;
@@ -27,7 +29,8 @@
  * 
  */
 
-public class SSLSessionBindingEventTest extends SerializationTest {
+public class SSLSessionBindingEventTest extends SerializationTest implements
+        SerializationTest.SerializableAssert {
 
     protected Object[] getData() {
         try {
@@ -41,7 +44,7 @@
         }
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
+    public void assertDeserialized(Serializable oref, Serializable otest) {
         SSLSessionBindingEvent ref = (SSLSessionBindingEvent) oref;
         SSLSessionBindingEvent test = (SSLSessionBindingEvent) otest;
         assertEquals(ref.getName(), test.getName());



Mime
View raw message