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

Reply via email to