You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lars vonk <la...@gmail.com> on 2008/03/14 11:32:56 UTC

WicketTester and RequestCycle behavior

Hi,

I noticed that WicketTester behaves differently regarding the RequestCycle
based on how you start a Page in your tests.

I have my own custom WebRequestCycle which I return in
MyWebApplication.onNewRequestCycle().

For instance:

If I do:

Page myPage = wicketTester.startPage(MyPage.class);

Then the onBeginRequest is not called, but the on onEndRequest is.

If I do:

Page myPage = wicketTester.startPage(new MyPage());

Both onBeginRequest and onEndRequest are called.

Is this intended behavior?

Lars