You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2015/06/12 20:59:00 UTC
[jira] [Resolved] (WICKET-5923)
BaseWicketTester.startComponentInPage(final C component) gives problem to
BaseWicketTester.assertLabel
[ https://issues.apache.org/jira/browse/WICKET-5923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier resolved WICKET-5923.
--------------------------------
Resolution: Invalid
Assignee: Sven Meier
Javadoc of different #startComponentInPage() methods clearly state when to use the panel id as prefix and when not.
E.g. with #startComponentInPage(Component) you have to use "testObject:first", since you provided the component id for the panel.
> BaseWicketTester.startComponentInPage(final C component) gives problem to BaseWicketTester.assertLabel
> ------------------------------------------------------------------------------------------------------
>
> Key: WICKET-5923
> URL: https://issues.apache.org/jira/browse/WICKET-5923
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.0.0-M5
> Reporter: Eric J. Van der Velden
> Assignee: Sven Meier
> Attachments: fix-WICKET-5923.patch
>
>
> @Test
> public void css(){
> wicketTester.startComponentInPage(new MyCssPanel("testObject"));
>
> wicketTester.assertLabel("first", "First Label");
> The last one gives an error message.Failed tests: css(my.test.own.MyCssPanel2Test): path: 'first' does not exist for page: StartComponentInPage
> But I fixed it..See my patch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)