Class VersionHistoryTest
- java.lang.Object
-
- junit.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.VersionHistoryTest
-
- All Implemented Interfaces:
junit.framework.Test
public class VersionHistoryTest extends AbstractVersionTest
VersionHistoryTestprovides test methods related to version history methods and general version history issues.
-
-
Field Summary
Fields Modifier and Type Field Description protected VersionHistoryvHistory-
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
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 Summary
Constructors Constructor Description VersionHistoryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()protected voidtearDown()voidtestAccept()Tests ifVersionHistory.accept(ItemVisitor)accepts a ItemVisitor and if the right Node is provided to that visitor.voidtestAddMixin()Tests ifVersionHistory.addMixin(String)throws aConstraintViolationExceptionvoidtestAddNode()Tests ifVersionHistory.addNode(String)andVersionHistory.addNode(String, String)throw aConstraintViolationExceptionvoidtestAutocreatedRootVersion()Test if initially there is an auto-created root version present in the version history.voidtestCanAddMixin()Tests ifVersionHistory.canAddMixin(String)returnsfalsevoidtestCancelMerge()Tests ifVersionHistory.cancelMerge(Version)throws anUnsupportedRepositoryOperationExceptionvoidtestCancelMergeJcr2()Tests ifVersionHistory.cancelMerge(Version)throws anUnsupportedRepositoryOperationExceptionvoidtestCheckin()Tests ifVersionHistory.checkin()throws anUnsupportedRepositoryOperationExceptionvoidtestCheckinJcr2()Tests ifVersionHistory.checkin()throws anUnsupportedRepositoryOperationExceptionvoidtestCheckout()Tests ifVersionHistory.checkout()throws anUnsupportedRepositoryOperationExceptionvoidtestCheckoutJcr2()Tests ifVersionHistory.checkout()throws anUnsupportedRepositoryOperationExceptionvoidtestDoneMerge()Tests ifVersionHistory.doneMerge(Version)throws anUnsupportedRepositoryOperationExceptionvoidtestDoneMergeJcr2()Tests ifVersionHistory.doneMerge(Version)throws anUnsupportedRepositoryOperationExceptionvoidtestGetAllFrozenNodes()Test thatVersionHistory.getAllFrozenNodes()returns an iterator containing the frozen nodes of all versions that have been created byVersionManager.checkpoint(String).voidtestGetAllVersions()Test thatVersionHistory.getAllVersions()returns an iterator containing the root version and all versions that have been created by Node.checkin().voidtestGetAllVersionsJcr2()Test thatVersionHistory.getAllVersions()returns an iterator containing the root version and all versions that have been created by Node.checkin().voidtestGetAncestor()Tests ifVersionHistory.getAncestor(int)returns the right ancestorvoidtestGetBaseVersion()Tests ifVersionHistory.getBaseVersion()throws anUnsupportedRepositoryOperationExceptionvoidtestGetBaseVersionJcr2()Tests ifVersionHistory.getBaseVersion()throws anUnsupportedRepositoryOperationExceptionvoidtestGetCorrespondingNodePath()Tests ifVersionHistory.getCorrespondingNodePath(String)returns the right pathvoidtestGetDepth()Tests ifVersionHistory.getDepth()returns the right depthvoidtestGetIdentifier()Tests ifVersionHistory.getIdentifier()returns the right UUIDvoidtestGetIndex()Tests ifVersionHistory.getIndex()returns the right indexvoidtestGetLock()Tests ifVersionHistory.getLock()throws anLockExceptionvoidtestGetLockJcr2()Tests ifVersionHistory.getLock()throws anLockExceptionvoidtestGetMixinNodeTypes()Tests ifVersionHistory.getMixinNodeTypes()does not return null.voidtestGetName()Tests ifVersionHistory.getName()returns the right namevoidtestGetNode()Tests ifVersionHistory.getNode(String)returns the right child NodevoidtestGetNodes()Tests ifVersionHistory.getNodes()andVersionHistory.getNodes(String)returns the right child NodevoidtestGetParent()Tests ifVersionHistory.getParent()returns the right parent NodevoidtestGetPath()Tests ifVersionHistory.getPath()returns the right pathvoidtestGetPrimaryItem()Tests ifVersionHistory.getPrimaryItem()throws aItemNotFoundExceptionvoidtestGetPrimaryNodeType()Tests ifVersionHistory.getPrimaryNodeType()returns the right primary node typent:versionHistoryvoidtestGetProperties()Tests ifVersionHistory.getProperties()andVersionHistory.getProperties(String)return the right propertyvoidtestGetProperty()Tests ifVersionHistory.getProperty(String)returns the right propertyvoidtestGetReferences()Tests ifVersionHistory.getReferences()returns the right reference of the versionable nodevoidtestGetSession()Tests ifVersionHistory.getSession()returns the right sessionvoidtestGetUUID()Tests ifVersionHistory.getUUID()returns the right UUIDvoidtestGetVersion()Test VersionHistory.getVersion(String versionName) if 'versionName' is the name of an existing version (created by Node.checkin()).voidtestGetVersionHistory()Tests ifVersionHistory.getVersionHistory()throws anUnsupportedRepositoryOperationExceptionvoidtestGetVersionHistoryJcr2()Tests ifVersionHistory.getVersionHistory()throws anUnsupportedRepositoryOperationExceptionvoidtestGetVersionHistoryOnNonVersionableNode()Test if UnsupportedRepositoryOperationException is thrown when calling Node.getVersionHistory() on a non-versionable node.voidtestGetVersionHistoryOnNonVersionableNodeJcr2()Test if UnsupportedRepositoryOperationException is thrown when calling Node.getVersionHistory() on a non-versionable node.voidtestHasNode()Tests ifVersionHistory.hasNode(String)returns the rightbooleanvaluevoidtestHasNodes()Tests ifVersionHistory.hasNodes()returnstruevoidtestHasProperties()Tests ifVersionHistory.hasProperties()returnstruevoidtestHasProperty()Tests ifVersionHistory.hasProperty(String)returns the rightbooleanvaluevoidtestHoldsLock()Tests ifVersionHistory.holdsLock()returnsfalsevoidtestHoldsLockJcr2()Tests ifVersionHistory.holdsLock()returnsfalsevoidtestInitiallyGetAllLinearVersionsContainsTheRootAndTheBaseVersion()Test if the iterator returned byVersionHistory.getAllLinearVersions()contains both the root and the base version upon creation of the version history.voidtestInitiallyGetAllVersionsContainsTheRootVersion()Test if the iterator returned byVersionHistory.getAllVersions()contains the root version upon creation of the version history.voidtestInitialNumberOfLinearVersions()The version history must initially contain two versions (root version + first test version) - linear variantvoidtestInitialNumberOfVersions()The version history must initially contain two versions (root version + first test version).voidtestIsCheckedOut()Tests ifVersionHistory.isCheckedOut()returnstruevoidtestIsCheckedOutJcr2()Tests ifVersionHistory.isCheckedOut()returnstruevoidtestIsLocked()Tests ifVersionHistory.isLocked()returnsfalsevoidtestIsLockedJcr2()Tests ifVersionHistory.isLocked()returnsfalsevoidtestIsModified()Tests ifVersionHistory.isModified()returnsfalsevoidtestIsNew()Tests ifVersionHistory.isNew()returnsfalsevoidtestIsNode()Tests ifVersionHistory.isNode()returnstruevoidtestIsNodeType()Tests ifVersionHistory.isNodeType(String)returns the rightbooleanvaluevoidtestIsSame()Tests ifVersionHistory.isSame()returns the rightbooleanvaluevoidtestLock()Tests ifVersionHistory.lock(boolean, boolean)throws aLockExceptionvoidtestLockJcr2()Tests ifVersionHistory.lock(boolean, boolean)throws aLockExceptionvoidtestMerge()Tests ifVersionHistory.merge(String)throws anConstraintViolationExceptionvoidtestOrderBefore()Tests ifVersionHistory.orderBefore(String, String)throws anUnsupportedRepositoryOperationExceptionvoidtestRefresh()Tests ifVersionHistory.refresh(boolean)works as expected (do nothing and return quietly)voidtestRemove()Tests ifVersionHistory.remove()throws anConstraintViolationExceptionvoidtestRemoveMixin()Tests ifVersionHistory.removeMixin(String)throws anNoSuchNodeTypeExceptionvoidtestRestore()Tests ifVersionHistory.restore(String, boolean)andVersionHistory.restore(Version, boolean)throw anUnsupportedRepositoryOperationExceptionandVersionHistory.restore(Version, String, boolean)throws aConstraintViolationException.voidtestRestoreByLabel()Tests ifVersionHistory.restoreByLabel(String, boolean)throws anUnsupportedRepositoryOperationExceptionvoidtestRestoreByLabelJcr2()Tests ifVersionHistory.restoreByLabel(String, boolean)throws anUnsupportedRepositoryOperationExceptionvoidtestRestoreJcr2()Tests ifVersionHistory.restore(String, boolean)andVersionHistory.restore(Version, boolean)throw anUnsupportedRepositoryOperationExceptionandVersionHistory.restore(Version, String, boolean)throws aConstraintViolationException.voidtestSetProperty()Tests ifVersionHistory.setProperty(String, String[])VersionHistory.setProperty(String, String[], int)VersionHistory.setProperty(String, Value[])VersionHistory.setProperty(String, Value[], int)VersionHistory.setProperty(String, boolean)VersionHistory.setProperty(String, double)VersionHistory.setProperty(String, InputStream)VersionHistory.setProperty(String, String)VersionHistory.setProperty(String, Calendar)VersionHistory.setProperty(String, Node)VersionHistory.setProperty(String, Value)VersionHistory.setProperty(String, long)all throw aConstraintViolationExceptionvoidtestUnlock()Tests ifVersionHistory.unlock()throws aLockExceptionvoidtestUnlockJcr2()Tests ifVersionHistory.unlock()throws aLockExceptionvoidtestUpdate()Tests ifVersionHistory.update(String)throws anConstraintViolationException-
Methods inherited from class org.apache.jackrabbit.test.api.version.AbstractVersionTest
createVersionableNode, getNumberOfVersions
-
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
-
Methods inherited from class junit.framework.TestCase
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
-
-
-
-
Field Detail
-
vHistory
protected VersionHistory vHistory
-
-
Method Detail
-
setUp
protected void setUp() throws Exception- Overrides:
setUpin classAbstractVersionTest- Throws:
Exception
-
tearDown
protected void tearDown() throws Exception- Overrides:
tearDownin classAbstractVersionTest- Throws:
Exception
-
testAutocreatedRootVersion
public void testAutocreatedRootVersion() throws RepositoryExceptionTest if initially there is an auto-created root version present in the version history.- Throws:
RepositoryException
-
testInitialNumberOfVersions
public void testInitialNumberOfVersions() throws RepositoryExceptionThe version history must initially contain two versions (root version + first test version).- Throws:
RepositoryException
-
testInitialNumberOfLinearVersions
public void testInitialNumberOfLinearVersions() throws RepositoryExceptionThe version history must initially contain two versions (root version + first test version) - linear variant- Throws:
RepositoryException- Since:
- JCR 2.0
-
testInitiallyGetAllVersionsContainsTheRootVersion
public void testInitiallyGetAllVersionsContainsTheRootVersion() throws RepositoryExceptionTest if the iterator returned byVersionHistory.getAllVersions()contains the root version upon creation of the version history.- Throws:
RepositoryException- See Also:
VersionHistory.getRootVersion()
-
testInitiallyGetAllLinearVersionsContainsTheRootAndTheBaseVersion
public void testInitiallyGetAllLinearVersionsContainsTheRootAndTheBaseVersion() throws RepositoryExceptionTest if the iterator returned byVersionHistory.getAllLinearVersions()contains both the root and the base version upon creation of the version history.- Throws:
RepositoryException- Since:
- JCR 2.0
-
testGetAllVersions
public void testGetAllVersions() throws RepositoryExceptionTest thatVersionHistory.getAllVersions()returns an iterator containing the root version and all versions that have been created by Node.checkin().- Throws:
RepositoryException- See Also:
VersionHistory.getAllVersions()
-
testGetAllVersionsJcr2
public void testGetAllVersionsJcr2() throws RepositoryExceptionTest thatVersionHistory.getAllVersions()returns an iterator containing the root version and all versions that have been created by Node.checkin().- Throws:
RepositoryException- See Also:
VersionHistory.getAllVersions()
-
testGetAllFrozenNodes
public void testGetAllFrozenNodes() throws RepositoryExceptionTest thatVersionHistory.getAllFrozenNodes()returns an iterator containing the frozen nodes of all versions that have been created byVersionManager.checkpoint(String).- Throws:
RepositoryException- Since:
- JCR 2.0
- See Also:
VersionHistory.getAllFrozenNodes()
-
testGetVersionHistoryOnNonVersionableNode
public void testGetVersionHistoryOnNonVersionableNode() throws RepositoryExceptionTest if UnsupportedRepositoryOperationException is thrown when calling Node.getVersionHistory() on a non-versionable node.- Throws:
RepositoryException
-
testGetVersionHistoryOnNonVersionableNodeJcr2
public void testGetVersionHistoryOnNonVersionableNodeJcr2() throws RepositoryExceptionTest if UnsupportedRepositoryOperationException is thrown when calling Node.getVersionHistory() on a non-versionable node.- Throws:
RepositoryException
-
testGetVersion
public void testGetVersion() throws RepositoryExceptionTest VersionHistory.getVersion(String versionName) if 'versionName' is the name of an existing version (created by Node.checkin()).- Throws:
RepositoryException- See Also:
VersionHistory.getVersion(String)
-
testAccept
public void testAccept() throws ExceptionTests ifVersionHistory.accept(ItemVisitor)accepts a ItemVisitor and if the right Node is provided to that visitor.- Throws:
Exception
-
testAddMixin
public void testAddMixin() throws ExceptionTests ifVersionHistory.addMixin(String)throws aConstraintViolationException- Throws:
Exception
-
testAddNode
public void testAddNode() throws ExceptionTests ifVersionHistory.addNode(String)andVersionHistory.addNode(String, String)throw aConstraintViolationException- Throws:
Exception
-
testCanAddMixin
public void testCanAddMixin() throws ExceptionTests ifVersionHistory.canAddMixin(String)returnsfalse- Throws:
Exception
-
testCancelMerge
public void testCancelMerge() throws ExceptionTests ifVersionHistory.cancelMerge(Version)throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testCancelMergeJcr2
public void testCancelMergeJcr2() throws ExceptionTests ifVersionHistory.cancelMerge(Version)throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testCheckin
public void testCheckin() throws ExceptionTests ifVersionHistory.checkin()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testCheckinJcr2
public void testCheckinJcr2() throws ExceptionTests ifVersionHistory.checkin()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testCheckout
public void testCheckout() throws ExceptionTests ifVersionHistory.checkout()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testCheckoutJcr2
public void testCheckoutJcr2() throws ExceptionTests ifVersionHistory.checkout()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testDoneMerge
public void testDoneMerge() throws ExceptionTests ifVersionHistory.doneMerge(Version)throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testDoneMergeJcr2
public void testDoneMergeJcr2() throws ExceptionTests ifVersionHistory.doneMerge(Version)throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testGetAncestor
public void testGetAncestor() throws ExceptionTests ifVersionHistory.getAncestor(int)returns the right ancestor- Throws:
Exception
-
testGetBaseVersion
public void testGetBaseVersion() throws ExceptionTests ifVersionHistory.getBaseVersion()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testGetBaseVersionJcr2
public void testGetBaseVersionJcr2() throws ExceptionTests ifVersionHistory.getBaseVersion()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testGetCorrespondingNodePath
public void testGetCorrespondingNodePath() throws ExceptionTests ifVersionHistory.getCorrespondingNodePath(String)returns the right path- Throws:
Exception
-
testGetDepth
public void testGetDepth() throws ExceptionTests ifVersionHistory.getDepth()returns the right depth- Throws:
Exception
-
testGetIndex
public void testGetIndex() throws ExceptionTests ifVersionHistory.getIndex()returns the right index- Throws:
Exception
-
testGetLock
public void testGetLock() throws ExceptionTests ifVersionHistory.getLock()throws anLockException- Throws:
Exception
-
testGetLockJcr2
public void testGetLockJcr2() throws ExceptionTests ifVersionHistory.getLock()throws anLockException- Throws:
Exception
-
testGetMixinNodeTypes
public void testGetMixinNodeTypes() throws ExceptionTests ifVersionHistory.getMixinNodeTypes()does not return null.- Throws:
Exception
-
testGetName
public void testGetName() throws ExceptionTests ifVersionHistory.getName()returns the right name- Throws:
Exception
-
testGetNode
public void testGetNode() throws ExceptionTests ifVersionHistory.getNode(String)returns the right child Node- Throws:
Exception
-
testGetNodes
public void testGetNodes() throws ExceptionTests ifVersionHistory.getNodes()andVersionHistory.getNodes(String)returns the right child Node- Throws:
Exception
-
testGetParent
public void testGetParent() throws ExceptionTests ifVersionHistory.getParent()returns the right parent Node- Throws:
Exception
-
testGetPath
public void testGetPath() throws ExceptionTests ifVersionHistory.getPath()returns the right path- Throws:
Exception
-
testGetPrimaryItem
public void testGetPrimaryItem() throws ExceptionTests ifVersionHistory.getPrimaryItem()throws aItemNotFoundException- Throws:
Exception
-
testGetPrimaryNodeType
public void testGetPrimaryNodeType() throws ExceptionTests ifVersionHistory.getPrimaryNodeType()returns the right primary node typent:versionHistory- Throws:
Exception
-
testGetProperties
public void testGetProperties() throws ExceptionTests ifVersionHistory.getProperties()andVersionHistory.getProperties(String)return the right property- Throws:
Exception
-
testGetProperty
public void testGetProperty() throws ExceptionTests ifVersionHistory.getProperty(String)returns the right property- Throws:
Exception
-
testGetReferences
public void testGetReferences() throws ExceptionTests ifVersionHistory.getReferences()returns the right reference of the versionable node- Throws:
Exception
-
testGetSession
public void testGetSession() throws ExceptionTests ifVersionHistory.getSession()returns the right session- Throws:
Exception
-
testGetUUID
public void testGetUUID() throws ExceptionTests ifVersionHistory.getUUID()returns the right UUID- Throws:
Exception
-
testGetIdentifier
public void testGetIdentifier() throws ExceptionTests ifVersionHistory.getIdentifier()returns the right UUID- Throws:
Exception
-
testGetVersionHistory
public void testGetVersionHistory() throws ExceptionTests ifVersionHistory.getVersionHistory()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testGetVersionHistoryJcr2
public void testGetVersionHistoryJcr2() throws ExceptionTests ifVersionHistory.getVersionHistory()throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testHasNode
public void testHasNode() throws ExceptionTests ifVersionHistory.hasNode(String)returns the rightbooleanvalue- Throws:
Exception
-
testHasNodes
public void testHasNodes() throws ExceptionTests ifVersionHistory.hasNodes()returnstrue- Throws:
Exception
-
testHasProperties
public void testHasProperties() throws ExceptionTests ifVersionHistory.hasProperties()returnstrue- Throws:
Exception
-
testHasProperty
public void testHasProperty() throws ExceptionTests ifVersionHistory.hasProperty(String)returns the rightbooleanvalue- Throws:
Exception
-
testHoldsLock
public void testHoldsLock() throws ExceptionTests ifVersionHistory.holdsLock()returnsfalse- Throws:
Exception
-
testHoldsLockJcr2
public void testHoldsLockJcr2() throws ExceptionTests ifVersionHistory.holdsLock()returnsfalse- Throws:
Exception
-
testIsCheckedOut
public void testIsCheckedOut() throws ExceptionTests ifVersionHistory.isCheckedOut()returnstrue- Throws:
Exception
-
testIsCheckedOutJcr2
public void testIsCheckedOutJcr2() throws ExceptionTests ifVersionHistory.isCheckedOut()returnstrue- Throws:
Exception
-
testIsLocked
public void testIsLocked() throws ExceptionTests ifVersionHistory.isLocked()returnsfalse- Throws:
Exception
-
testIsLockedJcr2
public void testIsLockedJcr2() throws ExceptionTests ifVersionHistory.isLocked()returnsfalse- Throws:
Exception
-
testIsModified
public void testIsModified() throws ExceptionTests ifVersionHistory.isModified()returnsfalse- Throws:
Exception
-
testIsNew
public void testIsNew() throws ExceptionTests ifVersionHistory.isNew()returnsfalse- Throws:
Exception
-
testIsNode
public void testIsNode() throws ExceptionTests ifVersionHistory.isNode()returnstrue- Throws:
Exception
-
testIsNodeType
public void testIsNodeType() throws ExceptionTests ifVersionHistory.isNodeType(String)returns the rightbooleanvalue- Throws:
Exception
-
testIsSame
public void testIsSame() throws ExceptionTests ifVersionHistory.isSame()returns the rightbooleanvalue- Throws:
Exception
-
testLock
public void testLock() throws ExceptionTests ifVersionHistory.lock(boolean, boolean)throws aLockException- Throws:
Exception
-
testLockJcr2
public void testLockJcr2() throws ExceptionTests ifVersionHistory.lock(boolean, boolean)throws aLockException- Throws:
Exception
-
testMerge
public void testMerge() throws ExceptionTests ifVersionHistory.merge(String)throws anConstraintViolationException- Throws:
Exception
-
testOrderBefore
public void testOrderBefore() throws ExceptionTests ifVersionHistory.orderBefore(String, String)throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testRefresh
public void testRefresh() throws ExceptionTests ifVersionHistory.refresh(boolean)works as expected (do nothing and return quietly)- Throws:
Exception
-
testRemove
public void testRemove() throws ExceptionTests ifVersionHistory.remove()throws anConstraintViolationException- Throws:
Exception
-
testRemoveMixin
public void testRemoveMixin() throws ExceptionTests ifVersionHistory.removeMixin(String)throws anNoSuchNodeTypeException- Throws:
Exception
-
testRestore
public void testRestore() throws ExceptionTests ifVersionHistory.restore(String, boolean)andVersionHistory.restore(Version, boolean)throw anUnsupportedRepositoryOperationExceptionandVersionHistory.restore(Version, String, boolean)throws aConstraintViolationException.- Throws:
Exception
-
testRestoreJcr2
public void testRestoreJcr2() throws ExceptionTests ifVersionHistory.restore(String, boolean)andVersionHistory.restore(Version, boolean)throw anUnsupportedRepositoryOperationExceptionandVersionHistory.restore(Version, String, boolean)throws aConstraintViolationException.- Throws:
Exception
-
testRestoreByLabel
public void testRestoreByLabel() throws ExceptionTests ifVersionHistory.restoreByLabel(String, boolean)throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testRestoreByLabelJcr2
public void testRestoreByLabelJcr2() throws ExceptionTests ifVersionHistory.restoreByLabel(String, boolean)throws anUnsupportedRepositoryOperationException- Throws:
Exception
-
testSetProperty
public void testSetProperty() throws ExceptionTests ifVersionHistory.setProperty(String, String[])VersionHistory.setProperty(String, String[], int)VersionHistory.setProperty(String, Value[])VersionHistory.setProperty(String, Value[], int)VersionHistory.setProperty(String, boolean)VersionHistory.setProperty(String, double)VersionHistory.setProperty(String, InputStream)VersionHistory.setProperty(String, String)VersionHistory.setProperty(String, Calendar)VersionHistory.setProperty(String, Node)VersionHistory.setProperty(String, Value)VersionHistory.setProperty(String, long)
ConstraintViolationException- Throws:
Exception
-
testUnlock
public void testUnlock() throws ExceptionTests ifVersionHistory.unlock()throws aLockException- Throws:
Exception
-
testUnlockJcr2
public void testUnlockJcr2() throws ExceptionTests ifVersionHistory.unlock()throws aLockException- Throws:
Exception
-
testUpdate
public void testUpdate() throws ExceptionTests ifVersionHistory.update(String)throws anConstraintViolationException- Throws:
Exception
-
-