public abstract class BaseVersionStoreTest extends BaseSpringTest
| Modifier and Type | Field and Description |
|---|---|
protected MutableAuthenticationDao |
authenticationDAO |
protected MutableAuthenticationService |
authenticationService |
protected ContentService |
contentService |
protected org.alfresco.service.cmr.repository.NodeService |
dbNodeService |
protected org.alfresco.repo.dictionary.DictionaryDAO |
dictionaryDAO |
protected org.alfresco.service.cmr.repository.MLText |
mlText |
protected static org.alfresco.service.namespace.QName |
MLTEXT_PROP |
protected static org.alfresco.service.namespace.QName |
MULTI_PROP |
protected static java.lang.String |
MULTI_VALUE_1 |
protected static java.lang.String |
MULTI_VALUE_2 |
protected java.util.Collection |
multiValue |
protected NodeArchiveService |
nodeArchiveService |
protected java.util.HashMap |
nodeProperties |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected org.alfresco.service.cmr.security.PermissionService |
permissionService |
protected static org.alfresco.service.namespace.QName |
PROP_1 |
protected static org.alfresco.service.namespace.QName |
PROP_2 |
protected static org.alfresco.service.namespace.QName |
PROP_3 |
protected org.alfresco.service.cmr.repository.NodeRef |
rootNodeRef |
protected static org.alfresco.service.namespace.QName |
TEST_ASPECT_QNAME |
protected static org.alfresco.service.namespace.QName |
TEST_ASSOC |
protected static org.alfresco.service.namespace.QName |
TEST_CHILD_ASSOC_1 |
protected static org.alfresco.service.namespace.QName |
TEST_CHILD_ASSOC_2 |
protected static java.lang.String |
TEST_CONTENT
Test content
|
protected static java.lang.String |
TEST_NAMESPACE |
protected static org.alfresco.service.namespace.QName |
TEST_TYPE_QNAME |
protected org.alfresco.service.cmr.repository.StoreRef |
testStoreRef |
protected TransactionService |
transactionService |
protected RetryingTransactionHelper |
txnHelper |
protected static java.lang.String |
VALUE_1 |
protected static java.lang.String |
VALUE_2 |
protected static java.lang.String |
VALUE_3 |
protected static java.lang.String |
VERSION_PROP_1 |
protected static java.lang.String |
VERSION_PROP_2 |
protected static java.lang.String |
VERSION_PROP_3 |
protected java.util.HashMap |
versionableNodes
The most recent set of versionable nodes created by createVersionableNode
|
protected java.util.Map |
versionProperties |
protected VersionService |
versionService |
sessionFactoryjdbcTemplatetransactionDefinition, transactionManager, transactionStatusAUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO| Constructor and Description |
|---|
BaseVersionStoreTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNewVersion(long beforeVersionTime,
java.lang.String expectedVersionLabel,
Version newVersion,
org.alfresco.service.cmr.repository.NodeRef versionableNode) |
protected void |
checkVersion(long beforeVersionTime,
java.lang.String expectedVersionLabel,
Version newVersion,
org.alfresco.service.cmr.repository.NodeRef versionableNode)
Checkd the validity of a new version
|
protected org.alfresco.service.cmr.repository.NodeRef |
createNewNode() |
protected org.alfresco.service.cmr.repository.NodeRef |
createNewVersionableNode()
Creates a new versionable node
|
protected org.alfresco.service.cmr.repository.NodeRef |
createNode(boolean versionable,
org.alfresco.service.namespace.QName nodeType) |
protected Version |
createVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode)
Creates a new version, checking the properties of the version.
|
protected Version |
createVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode,
java.util.Map versionProperties)
Creates a new version, checking the properties of the version.
|
protected java.util.Collection |
createVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode,
java.util.Map versionProperties,
boolean versionChildren) |
protected void |
onSetUpInTransaction()
Called during the transaction setup
|
protected java.lang.String |
peekNextVersionLabel(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map versionProperties)
Gets the next version label
|
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
Sets the meta model dao
|
void |
setVersionService(VersionService versionService) |
flushAndClear, 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 org.alfresco.service.cmr.repository.NodeService dbNodeService
protected VersionService versionService
protected ContentService contentService
protected org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO
protected MutableAuthenticationService authenticationService
protected TransactionService transactionService
protected RetryingTransactionHelper txnHelper
protected MutableAuthenticationDao authenticationDAO
protected NodeArchiveService nodeArchiveService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.security.PermissionService permissionService
protected org.alfresco.service.cmr.repository.StoreRef testStoreRef
protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef
protected java.util.Map versionProperties
protected java.util.HashMap nodeProperties
protected java.util.HashMap versionableNodes
protected static final java.lang.String TEST_NAMESPACE
protected static final org.alfresco.service.namespace.QName TEST_TYPE_QNAME
protected static final org.alfresco.service.namespace.QName TEST_ASPECT_QNAME
protected static final org.alfresco.service.namespace.QName PROP_1
protected static final org.alfresco.service.namespace.QName PROP_2
protected static final org.alfresco.service.namespace.QName PROP_3
protected static final org.alfresco.service.namespace.QName MULTI_PROP
protected static final java.lang.String VERSION_PROP_1
protected static final java.lang.String VERSION_PROP_2
protected static final java.lang.String VERSION_PROP_3
protected static final java.lang.String VALUE_1
protected static final java.lang.String VALUE_2
protected static final java.lang.String VALUE_3
protected static final org.alfresco.service.namespace.QName TEST_CHILD_ASSOC_1
protected static final org.alfresco.service.namespace.QName TEST_CHILD_ASSOC_2
protected static final org.alfresco.service.namespace.QName TEST_ASSOC
protected java.util.Collection multiValue
protected static final java.lang.String MULTI_VALUE_1
protected static final java.lang.String MULTI_VALUE_2
protected org.alfresco.service.cmr.repository.MLText mlText
protected static final org.alfresco.service.namespace.QName MLTEXT_PROP
protected static final java.lang.String TEST_CONTENT
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
dictionaryDAO - the meta model daopublic void setVersionService(VersionService versionService)
protected void onSetUpInTransaction()
throws java.lang.Exception
onSetUpInTransaction in class org.springframework.test.AbstractTransactionalSpringContextTestsjava.lang.Exceptionprotected org.alfresco.service.cmr.repository.NodeRef createNewVersionableNode()
protected org.alfresco.service.cmr.repository.NodeRef createNewNode()
protected org.alfresco.service.cmr.repository.NodeRef createNode(boolean versionable,
org.alfresco.service.namespace.QName nodeType)
protected Version createVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode)
The default test propreties are assigned to the version.
versionableNode - the versionable nodeprotected Version createVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode, java.util.Map versionProperties)
versionableNode - the versionable nodeversionProperties - the version propertiesprotected java.util.Collection createVersion(org.alfresco.service.cmr.repository.NodeRef versionableNode,
java.util.Map versionProperties,
boolean versionChildren)
protected java.lang.String peekNextVersionLabel(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map versionProperties)
protected void checkVersion(long beforeVersionTime,
java.lang.String expectedVersionLabel,
Version newVersion,
org.alfresco.service.cmr.repository.NodeRef versionableNode)
beforeVersionTime - the time snap shot before the version was creatednewVersion - the new versionversionableNode - the versioned nodeprotected void checkNewVersion(long beforeVersionTime,
java.lang.String expectedVersionLabel,
Version newVersion,
org.alfresco.service.cmr.repository.NodeRef versionableNode)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.