public class VersionServiceImplTest extends BaseVersionStoreTest
authenticationDAO, authenticationService, contentService, dbNodeService, dictionaryDAO, mlText, MLTEXT_PROP, MULTI_PROP, MULTI_VALUE_1, MULTI_VALUE_2, multiValue, nodeArchiveService, nodeProperties, nodeService, permissionService, PROP_1, PROP_2, PROP_3, rootNodeRef, TEST_ASPECT_QNAME, TEST_ASSOC, TEST_CHILD_ASSOC_1, TEST_CHILD_ASSOC_2, TEST_CONTENT, TEST_NAMESPACE, TEST_TYPE_QNAME, testStoreRef, transactionService, txnHelper, VALUE_1, VALUE_2, VALUE_3, VERSION_PROP_1, VERSION_PROP_2, VERSION_PROP_3, versionableNodes, versionProperties, versionServicesessionFactoryjdbcTemplatetransactionDefinition, transactionManager, transactionStatus| Constructor and Description |
|---|
VersionServiceImplTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
protected void |
onSetUpInTransaction()
Called during the transaction setup
|
protected void |
onTearDownAfterTransaction() |
void |
testAddRemoveVersionableAspect() |
void |
testAddVersionableAspectWithMajorVersionType() |
void |
testAddVersionableAspectWithMinorVersionType() |
void |
testAddVersionableAspectWithNoVersionType() |
void |
testALF_3962() |
void |
testALF5618() |
void |
testAR807() |
void |
testAutoRemovalOfVersionHistory() |
void |
testAutoVersionOff() |
void |
testAutoVersionOnInitialVersionOn() |
void |
testAutoVersionOnUpdatePropsOnly() |
void |
testAutoVersionOnUpdatePropsOnlyWithExcludes() |
void |
testAutoVersionWithPropsOnRevert() |
void |
testCreateInitialVersionWhenNotVersionable()
Test versioning a non versionable node ie: no version apsect
|
void |
testCreateIntialVersion()
Tests the creation of the initial version of a versionable node
|
void |
testCreateManyVersionsSameWorkspace()
Test creating a version history with many versions from the same workspace
|
void |
testCreateManyVersionsWithNullVersionProperties()
Tests the creation of multiple versions of a versionable node with null version properties
|
void |
testDeleteVersion()
Test deleteVersion
|
void |
testDeleteVersionHistory()
Test deleteVersionHistory
|
void |
testEnsureVersioningEnabled() |
void |
testGetVersionHistorySameWorkspace()
Tests getVersionHistory when all the entries in the version history
are from the same workspace.
|
void |
testHasPermission()
Check read permission for the frozen node
|
void |
testInitialVersionOff() |
void |
testNoVersionHistory()
Tests the version history
|
void |
testRestore()
Test restore
|
void |
testRevert()
Test revert
|
void |
testScriptNodeRevert()
Test reverting from Share
|
void |
testSetup() |
void |
testVersioningAndAuditable()
Ensure that versioning actions don't alter the auditable
aspect properties on the original nodes
|
void |
testVersioningChildren()
Test versioning the children of a verionable node
|
void |
testVersioningManyNodes()
Test versioning many nodes in one go
|
checkNewVersion, checkVersion, createNewNode, createNewVersionableNode, createNode, createVersion, createVersion, createVersion, peekNextVersionLabel, setDictionaryDAO, setVersionServiceflushAndClear, getConfigLocations, getSession, loadContext, setSessionFactorycountRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncodingendTransaction, isDefaultRollback, isRollback, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransactiongetAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariablescontextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDownaddContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirtygetDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBarecountTestCases, createResult, getName, run, run, runTest, setName, toStringassertEquals, 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, failNotEquals, failNotSame, failSame, formatprotected void onSetUpInTransaction()
throws java.lang.Exception
BaseVersionStoreTestonSetUpInTransaction in class BaseVersionStoreTestjava.lang.Exceptionprotected void onTearDownAfterTransaction()
throws java.lang.Exception
onTearDownAfterTransaction in class org.springframework.test.AbstractTransactionalSpringContextTestsjava.lang.Exceptionpublic void testSetup()
public void testCreateIntialVersion()
public void testCreateManyVersionsSameWorkspace()
public void testCreateManyVersionsWithNullVersionProperties()
public void testCreateInitialVersionWhenNotVersionable()
public void testVersioningChildren()
public void testVersioningManyNodes()
public void testNoVersionHistory()
public void testGetVersionHistorySameWorkspace()
public void testRevert()
public void testScriptNodeRevert()
public void testRestore()
public void testDeleteVersionHistory()
public void testDeleteVersion()
public void testAutoVersionOnInitialVersionOn()
public void testAutoVersionOff()
public void testInitialVersionOff()
public void testAddVersionableAspectWithNoVersionType()
public void testAddVersionableAspectWithMinorVersionType()
public void testAddVersionableAspectWithMajorVersionType()
public void testAddRemoveVersionableAspect()
public void testAutoRemovalOfVersionHistory()
public void testAutoVersionOnUpdatePropsOnly()
public void testAutoVersionOnUpdatePropsOnlyWithExcludes()
public void testAutoVersionWithPropsOnRevert()
public void testALF5618()
public void testAR807()
public void testHasPermission()
public void testALF_3962()
public void testVersioningAndAuditable()
throws java.lang.Exception
java.lang.Exceptionpublic void testEnsureVersioningEnabled()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.