Uploaded image for project: 'Maven Plugin Testing'
  1. Maven Plugin Testing
  2. MPLUGINTESTING-7

parameters annotated with default-value are not injected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1
    • None
    • plugin-testing-harness
    • None

    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!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              phallix Alex Eagle
              Votes:
              4 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: