[ 
https://issues.apache.org/jira/browse/JCR-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557347#action_12557347
 ] 

angela commented on JCR-1293:
-----------------------------

i managed to get the ReorderReferenceableSNSTest.testRevertReorder failing.

up to now i saw 2 variants of the reorder-tests failing (both due to additional 
child-nodes) 
and i don't know yet, whether they are related:

a):

the additional nodes had not uniqueID, means that they are not mix:referenceable
in the underlying jackrabbit repository (which i verified looking at the 
jackrabbit-nodes directly).
this is somehow unexpected sinde the tests only creates referenceable child 
nodes (at least it 
are intended to do so).
the result in this situation is always: inconsistent state and the teardown 
fails with InvalidItemStateException.

b)

cleanUpTestRoot of the AbstractJCRTest is called twice both in the setup and in 
the teardown and
it retrieves all child-nodes from the testRoot and removes them.
i saw, that from time to time not all child-nodes get removed (i imagine due to 
the weak nature
of the hierarchy)... in this case one test simple failed without causing 
inconsistencies for the 
subsequent tests.







> ReorderReferenceableSNSTest failure
> -----------------------------------
>
>                 Key: JCR-1293
>                 URL: https://issues.apache.org/jira/browse/JCR-1293
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core, jackrabbit-jcr2spi
>    Affects Versions: 1.4
>         Environment: Windows XP, Sun JDK 1.4.2_13
>            Reporter: Thomas Mueller
>
> I have checked out the Jackrabbit 1.4 branch to a new directory, and called:
> mvn clean install
> The error is:
> Building Jackrabbit JCR to SPI
>   task-segment: [clean, install]
> ---------------------------------
> ...
> testRevertReorder(org.apache.jackrabbit.jcr2spi.ReorderReferenceableSNSTest)
> junit.framework.AssertionFailedError: Reorder added a child node.
>        at junit.framework.Assert.fail(Assert.java:47)
>        at 
> org.apache.jackrabbit.jcr2spi.ReorderTest.testOrder(ReorderTest.java:90)
>        at 
> org.apache.jackrabbit.jcr2spi.ReorderTest.testRevertReorder(ReorderTest.java:122)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to