Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 48971 invoked from network); 1 Aug 2006 08:44:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 08:44:33 -0000 Received: (qmail 19683 invoked by uid 500); 1 Aug 2006 08:44:32 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 19574 invoked by uid 500); 1 Aug 2006 08:44:32 -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 19561 invoked by uid 99); 1 Aug 2006 08:44:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 01:44:31 -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; Tue, 01 Aug 2006 01:44:31 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 28BBE1A981A; Tue, 1 Aug 2006 01:44:11 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r427491 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/net/HttpRetryExceptionTest.java Date: Tue, 01 Aug 2006 08:44:10 -0000 To: harmony-commits@incubator.apache.org From: smishura@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060801084411.28BBE1A981A@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: Tue Aug 1 01:44:10 2006 New Revision: 427491 URL: http://svn.apache.org/viewvc?rev=427491&view=rev Log: Setting eol-style=native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/net/HttpRetryExceptionTest.java (contents, props changed) Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/net/HttpRetryExceptionTest.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/net/HttpRetryExceptionTest.java?rev=427491&r1=427490&r2=427491&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/net/HttpRetryExceptionTest.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/net/HttpRetryExceptionTest.java Tue Aug 1 01:44:10 2006 @@ -1,58 +1,58 @@ -/* - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.harmony.luni.tests.java.net; - -import java.net.HttpRetryException; -import tests.util.SerializationTester; -import junit.framework.TestCase; - -public class HttpRetryExceptionTest extends TestCase { - - private static final String SERIALIZATION_FILE_NAME = "serialization/java/net/HttpRetryExceptionTest.golden.ser"; //$NON-NLS-1$ - - private static final String LOCATION = "Http test"; //$NON-NLS-1$ - - private static final String DETAIL = "detail"; //$NON-NLS-1$ - - /** - * @tests serialization/deserilazation. - */ - public void testSerialization() throws Exception { - HttpRetryException ia = new HttpRetryException(DETAIL, 100, LOCATION); - - HttpRetryException deIA = (HttpRetryException) SerializationTester - .getDeserilizedObject(ia); - - assertEquals(LOCATION, deIA.getLocation()); - assertEquals(100, deIA.responseCode()); - assertEquals(DETAIL, deIA.getReason()); - assertEquals(DETAIL, deIA.getMessage()); - } - - /** - * @tests serialization/deserilazation compatibility with RI. - */ - public void testSerializationCompatibility() throws Exception { - HttpRetryException ia = new HttpRetryException(DETAIL, 100, LOCATION); - HttpRetryException deIA = (HttpRetryException) SerializationTester - .readObject(ia, SERIALIZATION_FILE_NAME); - assertEquals(LOCATION, deIA.getLocation()); - assertEquals(100, deIA.responseCode()); - assertEquals(DETAIL, deIA.getReason()); - assertEquals(DETAIL, deIA.getMessage()); - } -} +/* + * Copyright 2006 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package org.apache.harmony.luni.tests.java.net; + +import java.net.HttpRetryException; +import tests.util.SerializationTester; +import junit.framework.TestCase; + +public class HttpRetryExceptionTest extends TestCase { + + private static final String SERIALIZATION_FILE_NAME = "serialization/java/net/HttpRetryExceptionTest.golden.ser"; //$NON-NLS-1$ + + private static final String LOCATION = "Http test"; //$NON-NLS-1$ + + private static final String DETAIL = "detail"; //$NON-NLS-1$ + + /** + * @tests serialization/deserilazation. + */ + public void testSerialization() throws Exception { + HttpRetryException ia = new HttpRetryException(DETAIL, 100, LOCATION); + + HttpRetryException deIA = (HttpRetryException) SerializationTester + .getDeserilizedObject(ia); + + assertEquals(LOCATION, deIA.getLocation()); + assertEquals(100, deIA.responseCode()); + assertEquals(DETAIL, deIA.getReason()); + assertEquals(DETAIL, deIA.getMessage()); + } + + /** + * @tests serialization/deserilazation compatibility with RI. + */ + public void testSerializationCompatibility() throws Exception { + HttpRetryException ia = new HttpRetryException(DETAIL, 100, LOCATION); + HttpRetryException deIA = (HttpRetryException) SerializationTester + .readObject(ia, SERIALIZATION_FILE_NAME); + assertEquals(LOCATION, deIA.getLocation()); + assertEquals(100, deIA.responseCode()); + assertEquals(DETAIL, deIA.getReason()); + assertEquals(DETAIL, deIA.getMessage()); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/java/org/apache/harmony/luni/tests/java/net/HttpRetryExceptionTest.java ------------------------------------------------------------------------------ svn:eol-style = native