Re: Problem with testify and @SessionState injection

2009-09-08 Thread Mats Henricson
Paul Field wrote: > Mats Henricson wrote on 08/09/2009 09:41:56: >> Mats Henricson wrote: >>> So, how should I inject my mocked @SessionState object? Is it >>> possible through the tester object, before I render the page? >> I'm testing this now. Hopefully it is kosher: >> >> ApplicationStateMan

Re: Problem with testify and @SessionState injection

2009-09-08 Thread Paul Field
Mats Henricson wrote on 08/09/2009 09:41:56: > Mats Henricson wrote: > > So, how should I inject my mocked @SessionState object? Is it > > possible through the tester object, before I render the page? > > I'm testing this now. Hopefully it is kosher: > > ApplicationStateManager stateManager =

Re: Problem with testify and @SessionState injection

2009-09-08 Thread Mats Henricson
Mats Henricson wrote: > Paul Field wrote: >> Mats Henricson wrote on 07/09/2009 12:48:39: >> >>> I am really close to get my Testify machinery working for >>> my first non-trivial page. The last hurdle (touch on wood) >>> is that the @ForComponents annotation doesn't inject my >>> mock object in f

Re: Problem with testify and @SessionState injection

2009-09-07 Thread Mats Henricson
Paul Field wrote: > Mats Henricson wrote on 07/09/2009 12:48:39: > >> I am really close to get my Testify machinery working for >> my first non-trivial page. The last hurdle (touch on wood) >> is that the @ForComponents annotation doesn't inject my >> mock object in fields annotated with @Session

Re: Problem with testify and @SessionState injection

2009-09-07 Thread Paul Field
Mats Henricson wrote on 07/09/2009 12:48:39: > I am really close to get my Testify machinery working for > my first non-trivial page. The last hurdle (touch on wood) > is that the @ForComponents annotation doesn't inject my > mock object in fields annotated with @SessionState. I wouldn't expect