[
https://issues.apache.org/jira/browse/WICKET-6423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16084104#comment-16084104
]
Martin Grigorov commented on WICKET-6423:
-----------------------------------------
You should start using the users@ mailing list and/or StackOverflow.
For this you should use
org.apache.wicket.util.tester.WicketTester#assertComponent(String path, Class
expectedType)
> WicketTester should provide assertRenderedComponent method
> ----------------------------------------------------------
>
> Key: WICKET-6423
> URL: https://issues.apache.org/jira/browse/WICKET-6423
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Reporter: Kamil
>
> When I'm testing Page, I have convenient method to test if it has rendered
> successfuly:
> {code}
> //when
> wicketTester.startPage(MyPage.class);
>
> //then
> wicketTester.assertRenderedPage(MyPage.class);
> {code}
> but when I'm testing particular component:
> {code}
> //given
> final MyPanel panel = new MyPanel("test");
> //when
> wicketTester.startComponentInPage(panel);
> //then
> ??
> {code}
> then I need "assertRenderedComponent(MyPanel.class) in order to test if it
> rendered successfuly
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)