Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5128

Allow for Testing Component relative Feedback-Messages in Wicket-Tester

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.7.0
    • 7.0.0-M1
    • wicket
    • None

    Description

      If I as a developer want to test for certain Feedback Messages to be rendered, currently I can only test for a complete String.
      This forces me to duplicate the Feedback-Message String.
      If the Message changes, the Test will break.
      This is not desirable.
      The patch attached extends the Wicket-Tester and allows for Testing against Property-Keys and not only the complete rendered Message.
      This gives me the possibililty to change the feedback message without changing the corresponding test.
      Please consider applying the Patch.
      Thanks.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            splitshade Martin Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: