Hi Benjamin,

Unfortunately we don't... I've been wanting to set this up for a long time. Basically the main barrier for introducing unit tests in Jahia is the fact that the ParamBean object requires request and response objects, and that the ParamBean is used just about everywhere. I wanted to refactor the ParamBean to build a superclass that wouldn't require this so that we could build unit tests.

It might also be possible to achieve this with Mock objects, but I'm not familiar with them yet. But anyway the creation of a ParamBean superclass without request/response pairs would be a great improvement to the back-end.

Also such changes will only happen in the HEAD branch, as they will impact quite a lot of classes.

Regards,
 Serge Huber.

[EMAIL PROTECTED] wrote:


It would interest me, if you already have some automatic unit tests in place and if they are also available to the community? As we sometimes have to do some modifications to the Jahia source codes, we would like to use those tests, to see, whether our modifications did break some other functionality.


Benjamin Papez




Reply via email to