You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Carsten Behring (Updated) (JIRA)" <ji...@apache.org> on 2012/04/19 15:50:43 UTC
[jira] [Updated] (WICKET-4507)
wicktTester.getLastResponseAsString() returns wrong result after starting a
Component
[ https://issues.apache.org/jira/browse/WICKET-4507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Behring updated WICKET-4507:
------------------------------------
Attachment: quickstart.tgz
> wicktTester.getLastResponseAsString() returns wrong result after starting a Component
> -------------------------------------------------------------------------------------
>
> Key: WICKET-4507
> URL: https://issues.apache.org/jira/browse/WICKET-4507
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.5
> Reporter: Carsten Behring
> Attachments: quickstart.tgz
>
>
> > This following test :
> @Test
> public void test() throws Exception {
> WicketTester tester=new WicketTester();
> tester.startComponentInPage(new Label("lableId", "content") {
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("test","123");
> }
> });
> tester.assertResultPage("icket:id=\"lableId\" test=\"123\">content");
> assertEquals("icket:id=\"lableId\" test=\"123
> \">content",tester.getLastResponseAsString());
> assertEquals("",tester.getResponse().getDocument());
> }
> see attached quickstart
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira