Paul Field wrote: > Mats Henricson <m...@henricson.se> 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 = >> tester.getRegistry().getService(ApplicationStateManager.class); >> stateManager.set(GameUserState.class, myMockGameUserState); >> tester.renderPage(...); > > That looks sensible to me - and it does make sense to use a mock in that > case.
And it works too! My Testify machinery is now functional, and I've ironed out all ugly hacks as well. I promise to help out on the mailing list if testify issues pops up. Mats --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org