Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 28298 invoked from network); 6 Jul 2009 07:51:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 07:51:12 -0000 Received: (qmail 48638 invoked by uid 500); 6 Jul 2009 07:51:22 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 48567 invoked by uid 500); 6 Jul 2009 07:51:22 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 48558 invoked by uid 99); 6 Jul 2009 07:51:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 07:51:22 +0000 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; Mon, 06 Jul 2009 07:51:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5765523888BD; Mon, 6 Jul 2009 07:51:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r791400 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java Date: Mon, 06 Jul 2009 07:51:00 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090706075100.5765523888BD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Mon Jul 6 07:50:59 2009 New Revision: 791400 URL: http://svn.apache.org/viewvc?rev=791400&view=rev Log: additional tests for new prefix/suffic attributes of command line args. PR 47365. Submitted by Martin von Gagern Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java?rev=791400&r1=791399&r2=791400&view=diff ============================================================================== --- ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java (original) +++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java Mon Jul 6 07:50:59 2009 @@ -160,4 +160,16 @@ assertEquals(1, s.length); assertEquals("foo,1", s[0]); } + + public void testPrefixSuffixLine() { + Commandline c = new Commandline(); + Commandline.Argument a = c.createArgument(); + a.setLine("one two"); + a.setPrefix("number "); + a.setSuffix("."); + String[] s = c.getCommandline(); + assertEquals(2, s.length); + assertEquals("number one.", s[0]); + assertEquals("number two.", s[1]); + } }