You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Magnus Forsberg <ma...@self.se> on 2008/11/13 11:10:45 UTC

Test the http status code from WicketTester

Hi all,
I have a case where I need to assert a certain http status code from a
Wicket page. The status code is set by throwing an
AbortWithWebErrorCodeException since I want to display an error
message.

I have tried checking the
WicketTester#getServletResponse().getStatus() but it remains on 200
although my exception tries to set it to 400.

Wicket version is 1.3.5.

Anyone experienced anything similar?

Brgds,
Magnus Forsberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org