Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-362

SurefireBooter does not recognise the Properties sent by SurefirePlugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.4
    • TestNG support
    • None
    • Maven 2.0.7, Surefire SVN revision 587921, TestNG 4.7, 5.5
    • Patch

    Description

      The SurefirePlugin defines the new way of configuring TestNG by means of a Properties object. This object is passed to the SurefireBooter but it fails to recognise it.

      [INFO] [surefire:test]
      [INFO] Surefire report directory: /Users/tibvarga/work/test/project/target/surefire-reports
      java.lang.IllegalArgumentException: Unknown parameter type: java.util.Properties
      at org.apache.maven.surefire.booter.SurefireBooter.constructParamObjects(SurefireBooter.java:817)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:872)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------

      Attached is a project demonstrating the issue and a patch that resolves it, although in my view quite an ugly one.

      Attachments

        1. SurefireBooter.diff
          1 kB
          Tibor Adam Varga
        2. project.tgz
          0.8 kB
          Tibor Adam Varga

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vta Tibor Adam Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: