Servlet sessions are like Wicket statefulness:
Initially there is no session. Once you call getSession(true) you create
one.
Wicket pages are stateless by default. Once you add a stateful
component/behavior in the page tree you make it stateful.

This should answer your question - WicketTester should start with no http
session (for some reason this is represented as temporary http session) and
create one (i.e. make it non-temporary) once the application uses its first
stateful page.


On Fri, Dec 14, 2012 at 5:37 PM, Leonardo D'Alimonte <
[email protected]> wrote:

> Hi Martin,
> thanks for the explanation.
> Is ti possible the BaseWicketTester instantiate a MockHttpSession without
> setting anymore the temporary flag to "false"?
> I checked the source for Wicket 1.4.20 and I found this
> difference....setting this flag to false inside my WicketTester turned back
> my test to green..
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Possibile-bug-in-MockHttpServletRequest-tp4340419p4654823.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to