Claas Thiele wrote:
Hi,
I've written a JUnit adapter making JUnit tests inside a Cocoon servlet possible.
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.
Looks like a great job!
Maybe, it can make testing Cocoon easier.
It certainly can help... if we can get our hands on the code ;-)
If you consider contributing this code, please add it to bugzilla.
Thanks, Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
