false positive or wrong unit tests unit tests when ajax is involved -------------------------------------------------------------------
Key: WICKET-1199 URL: https://issues.apache.org/jira/browse/WICKET-1199 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.3.0-rc1 Reporter: Gerolf Seitz Assignee: Gerolf Seitz Priority: Critical Fix For: 1.3.0-rc2 MockWebApplication#setupRequestAndResponse always sets up a non ajax requestcycle. this method is also used to setup the requestcycle for ajax related functionality (eg. BaseWicketTester#clickLink). the consequence are: a) the markup for expected ajax responses contains wicket tags and wicket attributes, although these are never rendered in ajax responses. b) some unit tests (eg. AjaxTimerBehaviorTest#testAddToAjaxUpdate, ComponentBorderTest#testHideableBorder) succeed, when the same code in non-unit-test environment doesn't work, because there is no ajax request during testing, while there is one during normal execution. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.