...For unit testing flowscript, I'd use an HTTP-based method, which allows
you to test the full request processing chain "in situ".
the problem in that is that it's not real unit testing, unit testing should be done *in isolation*, this HTTP based testing is closer to integration testing or functional testing..
I see what you mean, but if you test a flowscript from HTTP/XML, testing the output of the JXTemplateGenerator for example, before any transforms, you're fairly close to unit testing. And the tools to do this are readily available. But of course there might be space for more isolated tests.
...To test my custom Cocoon components in their environment, I've been using a custom JUnitGenerator...
I suppose that this approach lacks isolation as well, anyway I'll be happy to take a look at it if you could publish the code somewhere
ok, I'll try to find some time to do this.
-Bertrand
smime.p7s
Description: S/MIME cryptographic signature
