That sounds fair enough. Can you please attach your patch to JIRA so we
don't forget it?

Frank


On 11/30/06, Martin Benda <[EMAIL PROTECTED]> wrote:

Hi,

I ran into problems when I tried to write some unit tests using
WicketTester
to test my application: The application creates its own RequestCycle which
extends WebRequestCycle (by overriding
WebApplication#getRequestCycleFactory). But when testing the application
inside the WicketTester, RequestCycle is always WebRequestCycle, not the
one
created by the factory.

The problem is IMO in the MockWebApplication class - it creates request
cycles
by "new WebRequestCycle(...)" - shouldn't it use
Session#getRequestCycleFactory#newRequestCycle(...) instead?

The attached patch solves this problem - at least for me :-)

P.S.: The patch was created for wicket-2.0 trunk.

Bendis



Reply via email to