jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gennady Azarenkov <gazaren...@gmail.com>
Subject TCK query/SaveTest
Date Mon, 27 Feb 2006 14:44:40 GMT
hi, 

in TCK query/SaveTest
     
  public void testItemExistsException() throws RepositoryException {
        Query query = superuser.getWorkspace().getQueryManager().createQuery(statement, Query.XPATH);
        query.storeAsNode(testRoot + "/" + nodeName1);

        // create another one
        query = superuser.getWorkspace().getQueryManager().createQuery(statement, Query.XPATH);
        try {
            query.storeAsNode(testRoot + "/" + nodeName1);
            fail("Query.storeAsNode() did not throw ItemExistsException");
        } catch (ItemExistsException e) {
            // expected behaviour
        }
    }

but testRoot  is an nt:unstructured node so same name sibling is allowed...
or i missed something in TCK configuration?

regards,

gena
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message