harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r439154 - /incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java
Date Fri, 01 Sep 2006 03:26:16 GMT
Author: smishura
Date: Thu Aug 31 20:26:15 2006
New Revision: 439154

URL: http://svn.apache.org/viewvc?rev=439154&view=rev
Log:
Refactoring testSerialization_ConstLevel() test to use new framework

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.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/LevelTest.java?rev=439154&r1=439153&r2=439154&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java
Thu Aug 31 20:26:15 2006
@@ -19,6 +19,8 @@
 import java.util.ResourceBundle;
 import java.util.logging.Level;
 
+import org.apache.harmony.testframework.serialization.SerializationTest;
+
 import junit.framework.TestCase;
 import tests.util.SerializationTester;
 
@@ -282,14 +284,15 @@
 	}
 
 
-	/*
-	 * Test serilaziation of pre-defined const levels. It is expected that the
-	 * deserialized cost level should be the same instance as the existing one.
-	 */
-	public void testSerialization_ConstLevel() throws Exception {
-		Level.ALL.toString();
-		SerializationTester.assertSame(Level.ALL);
-	}
+    /**
+     * Test serilaziation of pre-defined const levels. It is expected that the
+     * deserialized cost level should be the same instance as the existing one.
+     */
+    public void testSerialization_ConstLevel() throws Exception {
+
+        SerializationTest.verifySelf(Level.ALL,
+                SerializationTest.SAME_COMPARATOR);
+    }
 
 	/*
 	 * Test serilaziation of normal instance of Level. It is expected that the



Mime
View raw message