harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r427487 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test: api/java/org/apache/harmony/luni/tests/java/util/ resources/serialization/java/util/ resources/serialization/org/apache/harmony/luni/tests/java/util/
Date Tue, 01 Aug 2006 08:17:50 GMT
Author: smishura
Date: Tue Aug  1 01:17:50 2006
New Revision: 427487

URL: http://svn.apache.org/viewvc?rev=427487&view=rev
Log:
Refactoring UUID serialization tests

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/util/UUIDTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/util/UUIDTest.java?rev=427487&r1=427486&r2=427487&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/util/UUIDTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/util/UUIDTest.java
Tue Aug  1 01:17:50 2006
@@ -18,8 +18,9 @@
 
 import java.util.UUID;
 
+import org.apache.harmony.testframework.serialization.SerializationTest;
+
 import junit.framework.TestCase;
-import tests.util.SerializationTester;
 
 public class UUIDTest extends TestCase {
 
@@ -244,15 +245,20 @@
         assertEquals("00000000-0000-1000-8000-000000000000", actual);
     }
 
-    public void test_serialization() throws Exception {
-        UUID uuid = new UUID(0xf81d4fae7dec11d0L, 0xa76500a0c91e6bf6L);
-        SerializationTester.assertEquals(uuid);
+    /**
+     * @tests serialization/deserialization.
+     */
+    public void testSerializationSelf() throws Exception {
+        SerializationTest.verifySelf(new UUID(0xf81d4fae7dec11d0L,
+                0xa76500a0c91e6bf6L));
     }
 
-    public void test_serializationCompatability() throws Exception {
-        UUID uuid = new UUID(0xf81d4fae7dec11d0L, 0xa76500a0c91e6bf6L);
-        SerializationTester.assertCompabilityEquals(uuid,
-                "serialization/java/util/UUID.ser");
+    /**
+     * @tests serialization/deserialization compatibility with RI.
+     */
+    public void testSerializationCompatibility() throws Exception {
+        SerializationTest.verifyGolden(this, new UUID(0xf81d4fae7dec11d0L,
+                0xa76500a0c91e6bf6L));
     }
 
     /**



Mime
View raw message