Hi,

On 2/18/07, Nicolas <[EMAIL PROTECTED]> wrote:
As you might know, I am adding a visitor pattern to the PersistenceManager.
My code update is over however I would like to add a unit test to validate
the modification, but I can't find the relevant ones to the
PersistenceManager class.

I don't think we have existing unit tests covering the specific
persistence managers. Persistence is only tested indirectly through
the JCR API test suite.

Can you please tell them where should I write those unit tests and where is
the persistence manager test infrastructure?

The convention is to have the test cases of an
org.apache.jackrabbit.somepackage.SomeClass class within src/main/java
as the JUnit TestCase class
org.apache.jackrabbit.somepackage.SomeClassTest within src/test/java.
If the test case leverages the JCR API test suite, then it should
subclass org.apache.jackrabbit.test.AbstractJCRTest instead of the
JUnit TestCase.

BR,

Jukka Zitting

Reply via email to