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

AbstractMojoTestCase#setVariableValueToObject throws NullPointerException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Auto Closed
    • 1.2
    • None
    • plugin-testing-harness
    • None
    • any

    Description

      It would be nice if getVariableValueFromObject() and setVariableValueToObject() would throw an IllegalAccessException instead of a NullPointerException if the field does not exist. The exception should explain the user that the field he is trying to set does not exist int the provided object/class.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            francisdb Francis De Brabandere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment