harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r431831 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test: java/org/apache/harmony/luni/tests/java/util/ resources/serialization/java/util/ resources/serialization/org/apache/harmony/luni/tests/java/util/
Date Wed, 16 Aug 2006 05:40:06 GMT
Author: smishura
Date: Tue Aug 15 22:40:06 2006
New Revision: 431831

URL: http://svn.apache.org/viewvc?rev=431831&view=rev
Log:
Refactoring serialization tests to use new framework

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/org/apache/harmony/luni/tests/java/util/HashMapTest.golden.ser
      - copied unchanged from r431824, incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/HashMapTest.golden.ser
Removed:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/HashMapTest.golden.ser
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/util/HashMapTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/util/HashMapTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/util/HashMapTest.java?rev=431831&r1=431830&r2=431831&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/util/HashMapTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/util/HashMapTest.java
Tue Aug 15 22:40:06 2006
@@ -18,19 +18,27 @@
 import java.util.HashMap;
 
 import junit.framework.TestCase;
-import tests.util.SerializationTester;
+
+import org.apache.harmony.testframework.serialization.SerializationTest;
 
 public class HashMapTest extends TestCase {
-    public void test_serialization() throws Exception {
+    /**
+     * @tests serialization/deserialization.
+     */
+    public void testSerializationSelf() throws Exception {
         HashMap<String, String> hm = new HashMap<String, String>();
         hm.put("key", "value");
-        SerializationTester.assertEquals(hm);
+
+        SerializationTest.verifySelf(hm);
     }
 
-    public void test_serializationCompatability() throws Exception {
+    /**
+     * @tests serialization/deserialization compatibility with RI.
+     */
+    public void testSerializationCompatibility() throws Exception {
         HashMap<String, String> hm = new HashMap<String, String>();
         hm.put("key", "value");
-        SerializationTester.assertCompabilityEquals(hm,
-                "serialization/java/util/HashMapTest.golden.ser");
+
+        SerializationTest.verifyGolden(this, hm);
     }
 }



Mime
View raw message