Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 18059 invoked from network); 6 Dec 2010 13:34:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 13:34:33 -0000 Received: (qmail 60305 invoked by uid 500); 6 Dec 2010 13:34:33 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 60040 invoked by uid 500); 6 Dec 2010 13:34:33 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 60031 invoked by uid 99); 6 Dec 2010 13:34:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 13:34:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 13:34:28 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id DEA7315E8002 for ; Mon, 6 Dec 2010 07:34:06 -0600 (CST) Date: Mon, 6 Dec 2010 07:34:03 -0600 (CST) From: "Francis De Brabandere (JIRA)" To: issues@maven.apache.org Message-ID: <4578093.25963.1291642443500.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <29532139.1235435239765.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Commented: (MPLUGINTESTING-7) parameters annotated with default-value are not injected MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 [ http://jira.codehaus.org/browse/MPLUGINTESTING-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246578#action_246578 ] Francis De Brabandere commented on MPLUGINTESTING-7: ---------------------------------------------------- I have been looking around at some source code and a lot of people seem to have encountered this annoying issue. > parameters annotated with default-value are not injected > -------------------------------------------------------- > > Key: MPLUGINTESTING-7 > URL: http://jira.codehaus.org/browse/MPLUGINTESTING-7 > Project: Maven 2.x Plugin Testing > Issue Type: Bug > Components: plugin-testing-harness > Affects Versions: 1.1 > Reporter: Alex Eagle > > I have a Mojo with several parameters annotated with a default-value: > /** > * Colon-delimited packages to whitelist > * > * @parameter default-value="" > */ > private String whiteList; > But when I lookupMojo() my mojo in an AbstractMojoTestCase, I get a mojo with a null value in whiteList. > shouldn't I get an empty string instead? > Thanks! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira