public class WorkspaceRestoreTest extends AbstractVersionTest
WorkspaceRestoreTest provides test methods for the Workspace.restore(javax.jcr.version.Version[], boolean)
method.nonVersionableNode, nonVersionableNodeType, propertyValue, versionableNode, versionableNodeTypeisReadOnly, 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, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testPath, testRoot, testRootNode, vf, workspaceName| Constructor and Description |
|---|
WorkspaceRestoreTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testWorkspaceRestoreHasCorrespondingNode()
Test if VersionException is thrown if the specified version array does
not contain a version that has a corresponding node in this workspace.
|
void |
testWorkspaceRestoreHasCorrespondingNodeJcr2()
Test if VersionException is thrown if the specified version array does
not contain a version that has a corresponding node in this workspace.
|
void |
testWorkspaceRestoreOnCheckedInNode()
Test if workspace-restoring a node works on checked-in node.
|
void |
testWorkspaceRestoreOnCheckedInNodeJcr2()
Test if workspace-restoring a node works on checked-in node.
|
void |
testWorkspaceRestoreOnCheckedOutNode()
Test if workspace-restoring a node works on checked-out node.
|
void |
testWorkspaceRestoreOnCheckedOutNodeJcr2()
Test if workspace-restoring a node works on checked-out node.
|
void |
testWorkspaceRestoreWithParent()
Test if Workspace.restore(Version[], boolean) succeeds if the following two
preconditions are fulfilled:
For every version V in S that corresponds to a missing node in the workspace,
there must also be a parent of V in S.
S must contain at least one version that corresponds to an existing
node in the workspace.
|
void |
testWorkspaceRestoreWithParentJcr2()
Test if VersionManager.restore(Version[], boolean) succeeds if the following two
preconditions are fulfilled:
For every version V in S that corresponds to a missing node in the workspace,
there must also be a parent of V in S.
S must contain at least one version that corresponds to an existing
node in the workspace.
|
void |
testWorkspaceRestoreWithPendingChanges()
Test if InvalidItemStateException is thrown if the session affected by
Workspace.restore(Version[], boolean) has pending changes.
|
void |
testWorkspaceRestoreWithPendingChangesJcr2()
Test if InvalidItemStateException is thrown if the session affected by
VersionManager.restore(Version[], boolean) has pending changes.
|
void |
testWorkspaceRestoreWithRemoveExisting()
Test if the removeExisting-flag removes an existing node in case of uuid conflict.
|
void |
testWorkspaceRestoreWithRemoveExistingJcr2()
Test if the removeExisting-flag removes an existing node in case of uuid conflict.
|
void |
testWorkspaceRestoreWithUUIDConflict()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
void |
testWorkspaceRestoreWithUUIDConflictJcr2()
Tests if restoring the
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
createVersionableNode, getNumberOfVersionscheckSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, runassertEquals, 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, toStringprotected void setUp()
throws Exception
setUp in class AbstractVersionTestExceptionprotected void tearDown()
throws Exception
tearDown in class AbstractVersionTestExceptionpublic void testWorkspaceRestoreWithPendingChanges()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreWithPendingChangesJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreHasCorrespondingNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreHasCorrespondingNodeJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreWithParent()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreWithParentJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreWithRemoveExisting()
throws NotExecutableException,
javax.jcr.RepositoryException
NotExecutableExceptionjavax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreWithRemoveExistingJcr2()
throws NotExecutableException,
javax.jcr.RepositoryException
NotExecutableExceptionjavax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreWithUUIDConflict()
throws javax.jcr.RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testWorkspaceRestoreWithUUIDConflictJcr2()
throws javax.jcr.RepositoryException,
NotExecutableException
Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE.javax.jcr.RepositoryExceptionNotExecutableExceptionpublic void testWorkspaceRestoreOnCheckedInNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreOnCheckedInNodeJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreOnCheckedOutNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testWorkspaceRestoreOnCheckedOutNodeJcr2()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.