public class MergeNodeTest extends AbstractMergeTest
MergeNodeTest
contains tests dealing with general merge node
calls.CHANGED_STRING, nonVersionableNodeType, superuserW2, testRootNodeW2, versionableNodeType, workspace, workspaceW2
isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixTitle, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntActivity, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testPath, testRoot, testRootNode, vf, workspaceName
Constructor and Description |
---|
MergeNodeTest() |
Modifier and Type | Method and Description |
---|---|
void |
disable_testMergeLocked()
Tests if a
LockException is thrown when merge is called on a
locked node. |
void |
disable_testMergeLockedJcr2()
Tests if a
LockException is thrown when merge is called on a
locked node. |
void |
disable_testMergeNodeForceFailure()
if mergeFailedProperty is present > VersionException
|
void |
disable_testMergeNodeForceFailureJcr2()
if mergeFailedProperty is present > VersionException
|
protected void |
initNodes()
initialize a versionable node on default and second workspace
|
protected void |
setUp()
Initialising used variables coming from the properties file.
Setup some nodes on the 2 workspaces. |
protected void |
tearDown()
Tidy the testRootNodes of both workspaces, then logout sessions
|
void |
testMergeNodeBestEffortFalse()
Node.merge(): bestEffort is false and any merge fails a MergeException is
thrown.
|
void |
testMergeNodeBestEffortFalseAmbiguousVersions()
A MergeVersionException is thrown if bestEffort is false and a
versionable node is encountered whose corresponding node's base version
is on a divergent branch from this node's base version.
|
void |
testMergeNodeBestEffortFalseAmbiguousVersionsJcr2()
A MergeVersionException is thrown if bestEffort is false and a
versionable node is encountered whose corresponding node's base version
is on a divergent branch from this node's base version.
|
void |
testMergeNodeBestEffortFalseJcr2()
VersionManager.merge(): bestEffort is false and any merge fails a MergeException is
thrown.
|
void |
testMergeNodeBestEffortTrueCheckMergeFailedProperty()
Node.merge(): bestEffort is true > any merge-failure (represented by the
version in the workspace) is reported in the jcrMergeFailed property
|
void |
testMergeNodeBestEffortTrueCheckMergeFailedPropertyJcr2()
VersionManager.merge(): bestEffort is true > any merge-failure (represented by the
version in the workspace) is reported in the jcrMergeFailed property
|
void |
testMergeNodeNonCorrespondingNode()
Node.merge(): If this node does not have a corresponding node in the
indicated workspace
then the merge method returns quietly and no changes are made. |
void |
testMergeNodeNonCorrespondingNodeJcr2()
VersionManager.merge(): If this node does not have a corresponding node in the
indicated workspace
then the merge method returns quietly and no changes are made. |
void |
testMergeNodeVersionAmbiguous()
Node.merge(): versionable subNode N checked-in: If V is neither a
successor of, predecessor of, nor identical with V', then the merge
result for N is failed
|
void |
testMergeNodeVersionAmbiguousJcr2()
VersionManager.merge(): versionable subNode N checked-in: If V is neither a
successor of, predecessor of, nor identical with V', then the merge
result for N is failed
|
void |
testMergeNodeWithUnsavedStates()
Node.merge(): InvalidItemStateException if unsaved changes within the
current Session
|
void |
testMergeNodeWithUnsavedStatesJcr2()
VersionManager.merge(): InvalidItemStateException if unsaved changes within the
current Session
|
void |
testMergeUnknownWorkspaceName()
Perform a merge on a node with a unkwnown workspacename
|
void |
testMergeUnknownWorkspaceNameJcr2()
Perform a merge on a node with a unkwnown workspacename
|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toString
protected void setUp() throws Exception
AbstractMergeTest
setUp
in class AbstractMergeTest
Exception
protected void tearDown() throws Exception
AbstractMergeTest
tearDown
in class AbstractMergeTest
Exception
public void testMergeNodeWithUnsavedStates() throws RepositoryException
RepositoryException
public void testMergeNodeWithUnsavedStatesJcr2() throws RepositoryException
RepositoryException
public void testMergeUnknownWorkspaceName() throws RepositoryException
RepositoryException
public void testMergeUnknownWorkspaceNameJcr2() throws RepositoryException
RepositoryException
public void testMergeNodeNonCorrespondingNode() throws RepositoryException
RepositoryException
public void testMergeNodeNonCorrespondingNodeJcr2() throws RepositoryException
RepositoryException
public void testMergeNodeVersionAmbiguous() throws RepositoryException
RepositoryException
public void testMergeNodeVersionAmbiguousJcr2() throws RepositoryException
RepositoryException
public void testMergeNodeBestEffortTrueCheckMergeFailedProperty() throws RepositoryException
RepositoryException
public void testMergeNodeBestEffortTrueCheckMergeFailedPropertyJcr2() throws RepositoryException
RepositoryException
public void disable_testMergeNodeForceFailure() throws RepositoryException
RepositoryException
public void disable_testMergeNodeForceFailureJcr2() throws RepositoryException
RepositoryException
public void testMergeNodeBestEffortFalse() throws RepositoryException
RepositoryException
public void testMergeNodeBestEffortFalseJcr2() throws RepositoryException
RepositoryException
public void testMergeNodeBestEffortFalseAmbiguousVersions() throws RepositoryException
RepositoryException
public void testMergeNodeBestEffortFalseAmbiguousVersionsJcr2() throws RepositoryException
RepositoryException
public void disable_testMergeLocked() throws NotExecutableException, RepositoryException
LockException
is thrown when merge is called on a
locked node.NotExecutableException
- if repository does not support locking.RepositoryException
public void disable_testMergeLockedJcr2() throws NotExecutableException, RepositoryException
LockException
is thrown when merge is called on a
locked node.NotExecutableException
- if repository does not support locking.RepositoryException
protected void initNodes() throws RepositoryException
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.