harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r431791 - /incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
Date Wed, 16 Aug 2006 04:11:26 GMT
Author: smishura
Date: Tue Aug 15 21:11:25 2006
New Revision: 431791

URL: http://svn.apache.org/viewvc?rev=431791&view=rev
Log:
Add comparator for same objects

Modified:
    incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java?rev=431791&r1=431790&r2=431791&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
Tue Aug 15 21:11:25 2006
@@ -224,6 +224,15 @@
     };
 
     /**
+     * Comparator for verifying that deserialized object is the same as initial.
+     */
+    public final static SerializableAssert SAME_COMPARATOR = new SerializableAssert() {
+        public void assertDeserialized(Serializable reference, Serializable test) {
+            Assert.assertSame(reference, test);
+        }
+    };
+
+    /**
      * Comparator for java.lang.Throwable objects
      */
     public final static SerializableAssert THROWABLE_COMPARATOR = new SerializableAssert()
{



Mime
View raw message