You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/06/25 14:18:20 UTC

[jira] [Resolved] (WICKET-5128) Allow for Testing Component relative Feedback-Messages in Wicket-Tester

     [ https://issues.apache.org/jira/browse/WICKET-5128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-5128.
-------------------------------------

    Resolution: Fixed

Added org.apache.wicket.util.tester.WicketTester#assertComponentFeedbackMessage().
It looks a bit different than your original suggestion. 

Full diff for this ticket and WICKET-4585 can be seen at:
https://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=0c412482dfba45570fe7b7b0116383e59b3245f6
                
> Allow for Testing Component relative Feedback-Messages in Wicket-Tester
> -----------------------------------------------------------------------
>
>                 Key: WICKET-5128
>                 URL: https://issues.apache.org/jira/browse/WICKET-5128
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 6.7.0
>            Reporter: Martin Dilger
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 7.0.0
>
>         Attachments: WICKET-5128-Allow-for-Component-relative-Feedbackmessages-in-Wicket-Tester.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira