|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jackrabbit.test.JUnitTest
org.apache.jackrabbit.test.AbstractJCRTest
org.apache.jackrabbit.test.api.version.AbstractVersionTest
org.apache.jackrabbit.test.api.version.RestoreTest
public class RestoreTest
RestoreTest
covers tests related to the restore methods available
on Node
:
Node.restore(String, boolean)
Node.restore(javax.jcr.version.Version, boolean)
Node.restore(javax.jcr.version.Version, String, boolean)
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.test.api.version.AbstractVersionTest |
---|
nonVersionableNode, nonVersionableNodeType, propertyValue, versionableNode, versionableNodeType |
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
helper, isReadOnly, jcrBaseVersion, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, workspaceName |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
RestoreTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testRestoreChild1()
|
void |
testRestoreInvalidVersion()
VersionException expected on Node.restore(Version, boolean) if the specified version is not part of this node's version history. |
void |
testRestoreInvalidVersion2()
VersionException expected on Node.restore(String, boolean) if the specified version is not part of this node's version history. |
void |
testRestoreLabel()
Test the restore of the OPV=Version child nodes. |
void |
testRestoreName()
Test the restore of the OPV=Version child nodes. |
void |
testRestoreNonVersionableNode()
Test calling Node.restore(String, boolean) on a non-versionable node. |
void |
testRestoreNonVersionableNode2()
Test calling Node.restore(Version, String, boolean) on a non-versionable node. |
void |
testRestoreNonVersionableNode3()
Test calling Node.restore(Version, boolean) on a non-versionable node. |
void |
testRestoreOnCheckedInNode()
Test if restoring a node works on checked-in node. |
void |
testRestoreOnCheckedOutNode()
Test if restoring a node works on checked-out node. |
void |
testRestoreOrder()
Test the child ordering of restored nodes. |
void |
testRestoreOrder2()
Test the child ordering of restored nodes. |
void |
testRestoreRootVersionFail()
Test if restoring the root version fails. |
void |
testRestoreSetsBaseVersion()
Test if restoring a node sets the jcr:baseVersion property correctly. |
void |
testRestoreSetsIsCheckedOutToFalse()
Restoring a node set the jcr:isCheckedOut property to false. |
void |
testRestoreWithInvalidVersion()
Test if restoring a node with an invalid Version throws a VersionException |
void |
testRestoreWithPendingChanges()
Test if InvalidItemStateException is thrown if the node has pending changes. |
void |
testRestoreWithUUIDConflict()
Tests if restoring the Version of an existing node throws an
ItemExistsException if removeExisting is set to FALSE. |
Methods inherited from class org.apache.jackrabbit.test.api.version.AbstractVersionTest |
---|
createVersionableNode, getNumberOfVersions |
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureMultipleWorkspacesSupported, getNonExistingWorkspaceName, getProperty, getSize, isSupported, run |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RestoreTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class AbstractVersionTest
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractVersionTest
Exception
public void testRestoreRootVersionFail() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedInNode() throws RepositoryException
RepositoryException
public void testRestoreOnCheckedOutNode() throws RepositoryException
RepositoryException
public void testRestoreSetsIsCheckedOutToFalse() throws RepositoryException
RepositoryException
public void testRestoreSetsBaseVersion() throws RepositoryException
RepositoryException
public void testRestoreWithPendingChanges() throws RepositoryException
RepositoryException
public void testRestoreInvalidVersion() throws RepositoryException
RepositoryException
public void testRestoreInvalidVersion2() throws RepositoryException
RepositoryException
public void testRestoreNonVersionableNode() throws RepositoryException
RepositoryException
Node.restore(String, boolean)
public void testRestoreNonVersionableNode2() throws RepositoryException
RepositoryException
Node.restore(javax.jcr.version.Version, String, boolean)
public void testRestoreNonVersionableNode3() throws RepositoryException
RepositoryException
Node.restore(Version, boolean)
public void testRestoreWithInvalidVersion() throws RepositoryException
RepositoryException
public void testRestoreWithUUIDConflict() throws RepositoryException, NotExecutableException
Version
of an existing node throws an
ItemExistsException
if removeExisting is set to FALSE.
RepositoryException
NotExecutableException
public void testRestoreChild1() throws RepositoryException
RepositoryException
public void testRestoreLabel() throws RepositoryException
RepositoryException
public void testRestoreName() throws RepositoryException
RepositoryException
public void testRestoreOrder() throws RepositoryException
RepositoryException
public void testRestoreOrder2() throws RepositoryException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |