jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-540) AbstractJCRTest fails on level 1 repositories
Date Thu, 10 Aug 2006 14:15:14 GMT
    [ http://issues.apache.org/jira/browse/JCR-540?page=comments#action_12427233 ] 
Julian Reschke commented on JCR-540:


I can't run api.TestAll on a level 1 rep, because the cleanup code tails, and leaves dangling
sessions. So - at least over here - the test suite never terminates. Can we agree that at
a minimum, that needs to be fixed?

Furthermore, is there a way to run just the level 1 tests? If not, how is a tester supposed
to know whether the repository is L1 compliant without having to investigate each and every
test failure?

> AbstractJCRTest fails on level 1 repositories
> ---------------------------------------------
>                 Key: JCR-540
>                 URL: http://issues.apache.org/jira/browse/JCR-540
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: JCR TCK
>            Reporter: Julian Reschke
>            Priority: Minor
>         Attachments: JCR-540.diff.txt
> If a test case indicates that it's not read-only, org.apache.jackrabbit.test.AbstractJCRTest
tries to cleanup the test root in the setUp method. This will cause the test case to fail,
because a Level 1 repository will throw an UnsupportedOperationException here.
> Proposal: before trying the cleanup, check for L2 functionality and throw a NotExecutableException
>             if (! isSupported(Repository.LEVEL_2_SUPPORTED)) {
>               cleanUp();
>               String msg = "Test case requires level 2 functionality";
>               throw new NotExecutableException(msg);
>             }

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message