Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 7847 invoked from network); 19 Apr 2006 05:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Apr 2006 05:20:28 -0000 Received: (qmail 43290 invoked by uid 500); 19 Apr 2006 05:20:27 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 43241 invoked by uid 500); 19 Apr 2006 05:20:27 -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 43230 invoked by uid 99); 19 Apr 2006 05:20:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 22:20:27 -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; Tue, 18 Apr 2006 22:20:26 -0700 Received: (qmail 7672 invoked by uid 65534); 19 Apr 2006 05:20:06 -0000 Message-ID: <20060419052006.7660.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r395134 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DateTest.java Date: Wed, 19 Apr 2006 05:20:05 -0000 To: harmony-commits@incubator.apache.org From: smishura@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: smishura Date: Tue Apr 18 22:20:02 2006 New Revision: 395134 URL: http://svn.apache.org/viewcvs?rev=395134&view=rev Log: Adding regression test for HARMONY-238 (java.util.Date(null) should throw IllegalArgumentException not NullPointerException) Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DateTest.java Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DateTest.java URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DateTest.java?rev=395134&r1=395133&r2=395134&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DateTest.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DateTest.java Tue Apr 18 22:20:02 2006 @@ -100,6 +100,15 @@ Date d1 = new Date("January 1, 1970, 00:00:00 GMT"); // the epoch Date d2 = new Date(0); // the epoch assertTrue("Created incorrect date", d1.equals(d2)); + + try { + // Regression for HARMONY-238 + new Date(null); + fail("Constructor Date((String)null) should " + + "throw IllegalArgumentException"); + } catch (IllegalArgumentException e) { + // expected + } } /**