You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Francis De Brabandere (JIRA)" <ji...@codehaus.org> on 2010/12/06 14:34:03 UTC
[jira] Commented: (MPLUGINTESTING-7) parameters annotated with
default-value are not injected
[ 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