cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claas Thiele <>
Subject inserver unit testing
Date Wed, 07 Jul 2004 20:34:45 GMT

I've written a JUnit adapter making JUnit tests inside a Cocoon servlet 

advantages are;
- no mock objects for context creation needed
- testing of special servlet environments (i.e. weblogic) possible
- standard junit reporting (ant, maven) can be used

There is a CocoonTestCase extending TestCase having the objectmodel and 
servicemanager as member variables. This is the base class for testcases 
running on serverside. And there is a TestCaseReader to be included in 
the sitemap. Its for activating the testcases and sending back the results.

Maybe, it can make testing Cocoon easier.


View raw message