On Mon, 05 Feb 2007, Srdjan Marinovic wrote:
> I'm just picking up Wicket and I'm really enjoying it. However I'm
> having a slight problem. I want to unit test a page that requires some
> information from the session. How do I set up a session within a unit
> test and make it available when I call
> e.g.
> 
> (WicketTester)tester.startPage(WelcomePage.class);

Handling the session directly sounds very un-wickety.
Normally you should keep state in your components. They are
all(?) stateful in Wicket.

However, did you try

  tester.getServletSession()

?

- Timo

-- 
Timo Rantalaiho
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to