Maven 2.x Plugin Testing

parameters annotated with default-value are not injected

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.1
  • Fix Version/s: None
  • Component/s: plugin-testing-harness
  • Labels:
    None
  • Number of attachments :
    0

Description

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!

Activity

Hide
Francis De Brabandere added a comment -

I have been looking around at some source code and a lot of people seem to have encountered this annoying issue.

Show
Francis De Brabandere added a comment - I have been looking around at some source code and a lot of people seem to have encountered this annoying issue.

People

Vote (3)
Watch (3)

Dates

  • Created:
    Updated: