[
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