Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 92123 invoked from network); 24 Apr 2006 09:13:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 09:13:34 -0000 Received: (qmail 83104 invoked by uid 500); 24 Apr 2006 09:13:34 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 83076 invoked by uid 500); 24 Apr 2006 09:13:34 -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 83065 invoked by uid 99); 24 Apr 2006 09:13:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 02:13:34 -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: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Apr 2006 02:13:33 -0700 Received: (qmail 91891 invoked by uid 65534); 24 Apr 2006 09:13:13 -0000 Message-ID: <20060424091313.91871.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r396484 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/Inet6AddressTest.java Date: Mon, 24 Apr 2006 09:13:10 -0000 To: harmony-commits@incubator.apache.org From: tellison@apache.org X-Mailer: svnmailer-1.0.8 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: tellison Date: Mon Apr 24 02:13:06 2006 New Revision: 396484 URL: http://svn.apache.org/viewcvs?rev=396484&view=rev Log: Apply patch HARMONY-399 (test/java/tests/api/java/net/Inet6AddressTest.java doesn't follow JUnit exception handling convention) Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/Inet6AddressTest.java Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/Inet6AddressTest.java URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/Inet6AddressTest.java?rev=396484&r1=396483&r2=396484&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/Inet6AddressTest.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/Inet6AddressTest.java Mon Apr 24 02:13:06 2006 @@ -831,7 +831,7 @@ /** * @tests java.net.Inet6Address#getByAddress(String, byte[], int) */ - public void test_getByAddressLString$BI(){ + public void test_getByAddressLString$BI() throws UnknownHostException{ try { Inet6Address.getByAddress("123", null, 0); fail("should throw UnknownHostException"); @@ -850,16 +850,10 @@ 0x11, 0x25, (byte) 0xFF, (byte) 0xFE, (byte) 0xF8, (byte) 0x7C, (byte) 0xB2 }; - try { - Inet6Address.getByAddress("123", addr2, 3); - } catch (UnknownHostException e) { - fail("no exception should be thrown"); - } - try { - Inet6Address.getByAddress("123", addr2, 3); - } catch (UnknownHostException e) { - fail("no exception should be thrown"); - } + // should not throw any exception + Inet6Address.getByAddress("123", addr2, 3); + Inet6Address.getByAddress("123", addr2, 0); + Inet6Address.getByAddress("123", addr2, -1); } protected void setUp() {