Well, I am starting to write the tests on the 1.3 branch where the integration package is unfortunately not present yet. The mentioned test is self-contained, but I will have longer running ones as well. I'll try to be self-contained in 1.3 so far and have a look at porting them to 1.4 or trunk later.

Alex

Am 20.02.2008 um 12:52 schrieb Jukka Zitting:

Hi,

On Feb 20, 2008 12:45 PM, Alexander Klimetschek <[EMAIL PROTECTED]> wrote:
I wonder where to put a new unit test for jackrabbit-core.

If it's an API level test (i.e. uses the JCR API and requires a fully
instantiated repository), then I'd prefer if you placed it in
o.a.j.core.integration. As discussed earlier on this list, I'd like to
introduce a separation between quick and self-contained unit tests,
and longer-running integration tests that require a full repository.
The o.a.j.core.integration package is the closes thing we have to that
goal at the moment.

- WDYT is the best place for new tests?
- Shall I include them in TestAll?

If you place your tests in
src/test/java/org/apache/jackrabbit/core/integration and name them
SomeTest, they'll automatically be included in the Maven integration
test phase.

BR,

Jukka Zitting

--
Alexander Klimetschek
[EMAIL PROTECTED]




Reply via email to