public class VersionMigratorTest extends BaseVersionStoreTest
| Modifier and Type | Field and Description |
|---|---|
protected CheckOutCheckInService |
cociService |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected IntegrityChecker |
integrityChecker |
protected PolicyComponent |
policyComponent |
protected VersionServiceImpl |
version1Service |
protected Version2ServiceImpl |
version2Service |
protected VersionMigrator |
versionMigrator |
protected org.alfresco.service.cmr.repository.NodeService |
versionNodeService |
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 |
|---|
VersionMigratorTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onSetUpInTransaction()
Called during the transaction setup
|
void |
test_ETHREEOH_1540() |
void |
test_ETHREEOH_2091() |
void |
testMigrateMultipleNodesSuccessful() |
void |
testMigrateMultipleVersions()
Test migration of a multiple versioned nodes
|
void |
testMigrateOneVersion()
Test migration of a simple versioned node (one version, no children)
|
void |
testMigrateVersionWithAssocs()
Test migration of a single versioned node with versioned child assocs & peer assocs
|
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, onTearDownAfterTransaction, 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 VersionServiceImpl version1Service
protected Version2ServiceImpl version2Service
protected org.alfresco.service.cmr.repository.NodeService versionNodeService
protected VersionMigrator versionMigrator
protected PolicyComponent policyComponent
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected CheckOutCheckInService cociService
protected IntegrityChecker integrityChecker
protected void onSetUpInTransaction()
throws java.lang.Exception
BaseVersionStoreTestonSetUpInTransaction in class BaseVersionStoreTestjava.lang.Exceptionpublic void testMigrateOneVersion()
throws java.lang.Exception
java.lang.Exceptionpublic void testMigrateMultipleVersions()
throws java.lang.Exception
java.lang.Exceptionpublic void testMigrateMultipleNodesSuccessful()
throws java.lang.Exception
java.lang.Exceptionpublic void test_ETHREEOH_2091()
throws java.lang.Exception
java.lang.Exceptionpublic void test_ETHREEOH_1540()
throws java.lang.Exception
java.lang.Exceptionpublic void testMigrateVersionWithAssocs()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.