|
|||||||||
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.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.test.AbstractTransactionalSpringContextTests
org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
org.alfresco.util.BaseSpringTest
org.alfresco.repo.version.BaseVersionStoreTest
org.alfresco.repo.version.VersionServiceImplTest
public class VersionServiceImplTest
versionService test class.
Field Summary |
---|
Fields inherited from class org.alfresco.repo.version.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, versionService |
Fields inherited from class org.alfresco.util.BaseSpringTest |
---|
sessionFactory |
Fields inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
---|
jdbcTemplate |
Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
---|
transactionDefinition, transactionManager, transactionStatus |
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
---|
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO |
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests |
---|
applicationContext |
Constructor Summary | |
---|---|
VersionServiceImplTest()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
protected void |
onSetUpInTransaction()
Called during the transaction setup |
protected void |
onTearDownAfterTransaction()
|
void |
testAddRemoveVersionableAspect()
|
void |
testALF_3962()
|
void |
testALF5618()
|
void |
testAR807()
|
void |
testAutoRemovalOfVersionHistory()
|
void |
testAutoVersionOff()
|
void |
testAutoVersionOnInitialVersionOn()
|
void |
testAutoVersionOnUpdatePropsOnly()
|
void |
testAutoVersionOnUpdatePropsOnlyWithExcludes()
|
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 |
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 |
Methods inherited from class org.alfresco.repo.version.BaseVersionStoreTest |
---|
checkNewVersion, checkVersion, createNewNode, createNewVersionableNode, createNode, createVersion, createVersion, createVersion, peekNextVersionLabel, setDictionaryDAO, setVersionService |
Methods inherited from class org.alfresco.util.BaseSpringTest |
---|
flushAndClear, getConfigLocations, getSession, loadContext, setSessionFactory |
Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
---|
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding |
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
---|
endTransaction, isDefaultRollback, isRollback, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
---|
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables |
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
---|
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown |
Methods inherited from class org.springframework.test.AbstractSpringContextTests |
---|
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty |
Methods inherited from class org.springframework.test.ConditionalTestCase |
---|
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionServiceImplTest()
Method Detail |
---|
protected void onSetUpInTransaction() throws java.lang.Exception
BaseVersionStoreTest
onSetUpInTransaction
in class BaseVersionStoreTest
java.lang.Exception
protected void onTearDownAfterTransaction() throws java.lang.Exception
onTearDownAfterTransaction
in class org.springframework.test.AbstractTransactionalSpringContextTests
java.lang.Exception
public 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 testRestore()
public void testDeleteVersionHistory()
public void testDeleteVersion()
public void testAutoVersionOnInitialVersionOn()
public void testAutoVersionOff()
public void testInitialVersionOff()
public void testAddRemoveVersionableAspect()
public void testAutoRemovalOfVersionHistory()
public void testAutoVersionOnUpdatePropsOnly()
public void testAutoVersionOnUpdatePropsOnlyWithExcludes()
public void testALF5618()
public void testAR807()
public void testHasPermission()
public void testALF_3962()
public void testVersioningAndAuditable() throws java.lang.Exception
java.lang.Exception
public void testEnsureVersioningEnabled() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |