Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 55527 invoked from network); 30 May 2008 09:22:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2008 09:22:38 -0000 Received: (qmail 93233 invoked by uid 500); 30 May 2008 09:22:33 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 93191 invoked by uid 500); 30 May 2008 09:22:33 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 93174 invoked by uid 99); 30 May 2008 09:22:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2008 02:22:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2008 09:21:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7E2F72388A1B; Fri, 30 May 2008 02:22:08 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r661612 - /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/OptionBuilderTest.java Date: Fri, 30 May 2008 09:22:08 -0000 To: commits@commons.apache.org From: ebourg@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080530092208.7E2F72388A1B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ebourg Date: Fri May 30 02:22:08 2008 New Revision: 661612 URL: http://svn.apache.org/viewvc?rev=661612&view=rev Log: Improved test coverage for OptionBuilder Modified: commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/OptionBuilderTest.java Modified: commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/OptionBuilderTest.java URL: http://svn.apache.org/viewvc/commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/OptionBuilderTest.java?rev=661612&r1=661611&r2=661612&view=diff ============================================================================== --- commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/OptionBuilderTest.java (original) +++ commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/OptionBuilderTest.java Fri May 30 02:22:08 2008 @@ -135,4 +135,16 @@ fail( "IllegalArgumentException caught" ); } } + + public void testCreateIncompleteOption() { + try + { + OptionBuilder.hasArg().create(); + fail("Incomplete option should be rejected"); + } + catch (IllegalArgumentException e) + { + // expected + } + } }