Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 5469 invoked from network); 1 Sep 2006 03:26:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 03:26:43 -0000 Received: (qmail 38738 invoked by uid 500); 1 Sep 2006 03:26:43 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 38634 invoked by uid 500); 1 Sep 2006 03:26:43 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 38623 invoked by uid 99); 1 Sep 2006 03:26:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 20:26:43 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 20:26:36 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id C2DDC1A981A; Thu, 31 Aug 2006 20:26:16 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: harmony-commits@incubator.apache.org From: smishura@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060901032616.C2DDC1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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