harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r438420 - in /incubator/harmony/enhanced/classlib/trunk/modules/logging: META-INF/ src/test/java/org/apache/harmony/logging/tests/java/util/logging/ src/test/resources/serialization/java/util/logging/ src/test/resources/serialization/org/ s...
Date Wed, 30 Aug 2006 08:34:21 GMT
Author: smishura
Date: Wed Aug 30 01:34:18 2006
New Revision: 438420

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

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/harmony/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/harmony/logging/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/harmony/logging/tests/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/harmony/logging/tests/java/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/harmony/logging/tests/java/util/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/harmony/logging/tests/java/util/logging/
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/org/apache/harmony/logging/tests/java/util/logging/LoggingPermissionTest.golden.ser
      - copied unchanged from r438401, incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/java/util/logging/LogPermission.ser
Removed:
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/resources/serialization/java/util/logging/LogPermission.ser
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/logging/META-INF/MANIFEST.MF
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggingPermissionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/logging/META-INF/MANIFEST.MF?rev=438420&r1=438419&r2=438420&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/META-INF/MANIFEST.MF (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/META-INF/MANIFEST.MF Wed Aug
30 01:34:18 2006
@@ -16,5 +16,6 @@
  java.text,
  java.util,
  org.apache.harmony.kernel.vm,
- tests.util;hy_usage=test;resolution:=optional
+ tests.util;hy_usage=test;resolution:=optional,
+ org.apache.harmony.testframework.serialization;hy_usage=test;resolution:=optional
 Export-Package: java.util.logging

Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggingPermissionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggingPermissionTest.java?rev=438420&r1=438419&r2=438420&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggingPermissionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggingPermissionTest.java
Wed Aug 30 01:34:18 2006
@@ -18,14 +18,26 @@
 import java.util.logging.LoggingPermission;
 
 import junit.framework.TestCase;
-import tests.util.SerializationTester;
+
+import org.apache.harmony.testframework.serialization.SerializationTest;
 
 public class LoggingPermissionTest extends TestCase {
-	public void testSerializationCompability() throws Exception {
-		LoggingPermission lp = new LoggingPermission("control", "");
-		SerializationTester.assertCompabilityEquals(lp,
-				"serialization/java/util/logging/LogPermission.ser");
-	}
+
+    /**
+     * @tests serialization/deserialization compatibility.
+     */
+    public void testSerializationSelf() throws Exception {
+        SerializationTest.verifySelf(new LoggingPermission("control", ""));
+    }
+
+    /**
+     * @tests serialization/deserialization compatibility with RI.
+     */
+    public void testSerializationCompatibility() throws Exception {
+
+        SerializationTest.verifyGolden(this, new LoggingPermission("control",
+                ""));
+    }
 
 	public void testLoggingPermission() {
 		try {



Mime
View raw message