I have two questions about unit testing with tapestry.

 

I am trying to create a setup where I can unit test pages using
appropriate mocks and stubs for injected business services whether they
come from Tapestry IOC or Spring.

 

I've seen the Wiki entries for SpringIntegrationAlternative and
SpringIntegrationAlternative2.  This doesn't seem to be a totally
natural solution - in the case of alternative 2 I have to change my
injection annotations to get spring beans in a testing context.  We are
currently using 5.0.7 snapshot for evaluation - I'm wondering if there
is going to be a fully integrated solution going forward?

 

Secondly how can I mock out components injected into the container (from
both Tapeestry and Spring) underneath a PageTester instance?  I notice
there's an IOCTestCase and a TapestryTestCase in the source - am I
looking the right direction?

 

Thx.T.

Reply via email to