Hi,

it seems that ApplicationGlobals in the PageTester is like a 'mocked'
object, not exactly the same as real one, so this does bring up a question:

while testing a page, we have to mock some services that the page uses, what
I'm doing now is, I'll comment out the service in the AppModule.java, then
pass a TestAppModule in the PageTester:

PageTester tester = new PageTester(appPackage, appName, "src/main/webapp",
TestAppModule.class);

this works, but I have to update the AppModule.java after the test, any idea
how to do this in an easier way? or what is the better approach when testing
pages that need to use mock'ed services? Thanks,

A.C.



Angelo Chen wrote:
> 
> Hi,
> 
> I was trying to use PageTester, I got this problem:
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-PageTester-and-ApplicationGlobals-tp15652400p15659919.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to