You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pavel Dubina (JIRA)" <ji...@apache.org> on 2012/11/29 12:34:58 UTC
[jira] [Created] (WICKET-4896) WicketTester incorrectly tests for
feedback messages
Pavel Dubina created WICKET-4896:
------------------------------------
Summary: WicketTester incorrectly tests for feedback messages
Key: WICKET-4896
URL: https://issues.apache.org/jira/browse/WICKET-4896
Project: Wicket
Issue Type: Bug
Components: wicket-devutils
Affects Versions: 6.2.0
Reporter: Pavel Dubina
Priority: Minor
WicketTester.assertFeedback() tries to access Feedback Messages from a feedback panel by calling the getFeedbackMessagesModel. However, the list is emptied after rendering, even though the messages are still visible in the child labels. As such - WicketTester asserts no messages in the panel, even when there are messages.
--
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
[jira] [Commented] (WICKET-4896) WicketTester incorrectly tests for
feedback messages
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506481#comment-13506481 ]
Martin Grigorov commented on WICKET-4896:
-----------------------------------------
Please provide a quickstart.
Page constructor:
public HomePage(final PageParameters parameters) {
super(parameters);
FeedbackPanel feedbackPanel = new FeedbackPanel("f");
add(feedbackPanel);
info("Message1");
}
test code:
@Test
public void homepageRendersSuccessfully()
{
//start and render the test page
tester.startPage(HomePage.class);
//assert rendered page class
tester.assertRenderedPage(HomePage.class);
tester.assertFeedback("f", "Message1");
}
works fine.
> WicketTester incorrectly tests for feedback messages
> ----------------------------------------------------
>
> Key: WICKET-4896
> URL: https://issues.apache.org/jira/browse/WICKET-4896
> Project: Wicket
> Issue Type: Bug
> Components: wicket-devutils
> Affects Versions: 6.2.0
> Reporter: Pavel Dubina
> Priority: Minor
>
> WicketTester.assertFeedback() tries to access Feedback Messages from a feedback panel by calling the getFeedbackMessagesModel. However, the list is emptied after rendering, even though the messages are still visible in the child labels. As such - WicketTester asserts no messages in the panel, even when there are messages.
--
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
[jira] [Resolved] (WICKET-4896) WicketTester incorrectly tests for
feedback messages
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4896.
-------------------------------------
Resolution: Cannot Reproduce
Please attach a quickstart and we will reopen the ticket.
> WicketTester incorrectly tests for feedback messages
> ----------------------------------------------------
>
> Key: WICKET-4896
> URL: https://issues.apache.org/jira/browse/WICKET-4896
> Project: Wicket
> Issue Type: Bug
> Components: wicket-devutils
> Affects Versions: 6.2.0
> Reporter: Pavel Dubina
> Priority: Minor
>
> WicketTester.assertFeedback() tries to access Feedback Messages from a feedback panel by calling the getFeedbackMessagesModel. However, the list is emptied after rendering, even though the messages are still visible in the child labels. As such - WicketTester asserts no messages in the panel, even when there are messages.
--
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