Well I've got got an EmailTransformer I've produced for a current project, it's not too elegant at the moment, but it works, and it has some generic unit test code that folk might be interested in for testing the processing of a transformer - I don't think there's much unit test code in the current Cocoon codebase, infact I think I might be responsible for all of it!!.
If anyone can find the time to relocate it appropriately in the cocoon class hierarchy, I have a number of bits of unit testing infrastructure that might be handy to other folk: Mock Classes for Avalon: avalon.excalibur.DataSourceComponent Mock Classes for Framework: avalon.framework.ComponentManager avalon.framework.Configuration Mock Classes for Cocoon: cocoon.environment.Redirector cocoon.environment.Request cocoon.environment.Session cocoon.environment.Source cocoon.environment.SourceResolver These provide sufficient glue to unit test quite a lot of actions, generators and transformers in isolation which could also be handy for some kinds of performance testing. Anyone interested? Stuart. On Saturday, February 16, 2002, at 02:36 pm, Mikhail Fedotov wrote: > Hi! > >> P.S. Anyone interested in a simple EmailTransformer - >> i.e. a transformer that interprets email descriptions >> and sends emails, but leaves the rest of the document >> intact? > > Count me. > > I guess it would be perfect, for example, to get some > addresses from database in SQLTransformer and send email > to addresses returned, this gives simple way to build > maillists, for example. > > But this would be much more useful if SQLTransformer will > look like Esql in terms of functionality. As I remember, > it is way more simple. Something for my "keep in mind" > list until I'll have time for coding this and contribute. > > Mikhail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos) Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD 65AF ------------------------------------------------------------------------- Stuart Roebuck [EMAIL PROTECTED] Systems Architect Java, XML, MacOS X, XP, etc. ADOLOS <http://www.adolos.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]