Paul Field wrote:
> Mats Henricson <m...@henricson.se> 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 you to use mock objects with @SessionState. Tapestry's 
> PageTester (on which Testify is built) runs with a fake session so is able 
> to store session information during your test. So I would expect 
> @SessionState to work as it does in a live site. However, I haven't 
> actually tried it - so I could be wrong.

So, how should I inject my mocked @SessionState object? Is it
possible through the tester object, before I render the page?

Mats


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to