You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Eric J. Van der Velden (JIRA)" <ji...@apache.org> on 2015/06/12 16:43:00 UTC

[jira] [Updated] (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 ]

Eric J. Van der Velden updated WICKET-5923:
-------------------------------------------
    Attachment: fix-WICKET-5923.patch

> 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
>         Attachments: fix-WICKET-5923.patch
>
>
> 	@Test
> 	public void css(){
> 		wicketTester.startComponentInPage(new MyCssPanel("testObject"));
> 		MockHttpServletResponse mockHttpServletResponse=wicketTester.getLastResponse();
> 		String markup=mockHttpServletResponse.getDocument();
> 		
> 		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)