Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38297

assertEqualDataBoundBeans should support DataBoundSetter for members

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: jenkins-test-harness
    • Labels:
      None
    • Environment:
      jenkins-test-harnes-2.14
    • Similar Issues:

      Description

      JENKINS-36398 added the feature to support setters with @DataBoundStter

          private String field;
          @DataBoundSetter
          public void setField(String field) {...}
          public String getField() {...}
      

      But it doesn't work with members with @DataBoundSetter.

          @DataBoundSetter
          public String field;
      

        Attachments

          Issue Links

            Activity

            Hide
            ikedam ikedam added a comment -

            @DataBoundSetter support for members looks starts from stapler-1.220
            https://github.com/stapler/stapler/commit/425314ba247ab90791ca3ba0507ab5b8e25d2a2d

            Show
            ikedam ikedam added a comment - @DataBoundSetter support for members looks starts from stapler-1.220 https://github.com/stapler/stapler/commit/425314ba247ab90791ca3ba0507ab5b8e25d2a2d
            Show
            ikedam ikedam added a comment - https://github.com/jenkinsci/jenkins-test-harness/pull/34
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            src/main/java/org/jvnet/hudson/test/JenkinsRule.java
            src/test/java/org/jvnet/hudson/test/JenkinsRuleTest.java
            http://jenkins-ci.org/commit/jenkins-test-harness/ce41771153820bab74780e93118a0055ac011e1b
            Log:
            [FIXED JENKINS-38297] Support DataBoundSetter fields by assertEqualDataBoundBeans

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/org/jvnet/hudson/test/JenkinsRule.java src/test/java/org/jvnet/hudson/test/JenkinsRuleTest.java http://jenkins-ci.org/commit/jenkins-test-harness/ce41771153820bab74780e93118a0055ac011e1b Log: [FIXED JENKINS-38297] Support DataBoundSetter fields by assertEqualDataBoundBeans

              People

              • Assignee:
                ikedam ikedam
                Reporter:
                ikedam ikedam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: