You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2005/09/23 18:20:19 UTC
svn commit: r291163 -
/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/WorkspaceCloneReferenceableTest.java
Author: mreutegg
Date: Fri Sep 23 09:20:14 2005
New Revision: 291163
URL: http://svn.apache.org/viewcvs?rev=291163&view=rev
Log:
JCR-156: Review test cases and cross check with 1.0 specification
- WorkspaceCloneReferenceableTest contains test cases that attempt to create same-name siblings.
Modified:
incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/WorkspaceCloneReferenceableTest.java
Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/WorkspaceCloneReferenceableTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/WorkspaceCloneReferenceableTest.java?rev=291163&r1=291162&r2=291163&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/WorkspaceCloneReferenceableTest.java (original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/WorkspaceCloneReferenceableTest.java Fri Sep 23 09:20:14 2005
@@ -88,11 +88,11 @@
addMixinReferenceableToNode(node1);
// clone a node from default workspace to have the same uuid on second workspace
- workspaceW2.clone(workspace.getName(), node1.getPath(), testRootNodeW2.getPath() + "/" + nodeName2, false);
+ workspaceW2.clone(workspace.getName(), node1.getPath(), testRootNodeW2.getPath() + "/" + nodeName3, false);
// clone node1 from default workspace to second workspace
try {
- workspaceW2.clone(workspace.getName(), node1.getPath(), testRootNodeW2.getPath() + "/" + nodeName3, false);
+ workspaceW2.clone(workspace.getName(), node1.getPath(), testRootNodeW2.getPath() + "/" + nodeName4, false);
fail("If removeExisting is false then a UUID collision should throw a ItemExistsException");
} catch (ItemExistsException e) {
// successful
@@ -108,7 +108,7 @@
// add mixin referenceable to node1
addMixinReferenceableToNode(node1);
if (node1.isNodeType(mixReferenceable)) {
- workspaceW2.clone(workspace.getName(), node1.getPath(), testRootNodeW2.getPath() + "/" + nodeName2, false);
+ workspaceW2.clone(workspace.getName(), node1.getPath(), testRootNodeW2.getPath() + "/" + nodeName3, false);
} else {
fail("Node should be referenceable.");
}
@@ -117,8 +117,8 @@
if (node2.isNodeType(mixReferenceable)) {
fail("Node should not be referenceable.");
} else {
- workspaceW2.clone(workspace.getName(), node2.getPath(), testRootNodeW2.getPath() + "/" + nodeName2, false);
- assertTrue(testRootNodeW2.hasNode(nodeName2));
+ workspaceW2.clone(workspace.getName(), node2.getPath(), testRootNodeW2.getPath() + "/" + nodeName4, false);
+ assertTrue(testRootNodeW2.hasNode(nodeName4));
}
}