|
|||||||||
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.util.BaseAlfrescoSpringTest
org.alfresco.repo.action.ActionServiceImplTest
public class ActionServiceImplTest
Action service test
Nested Class Summary | |
---|---|
static interface |
ActionServiceImplTest.AsyncTest
Async test interface |
protected static class |
ActionServiceImplTest.CancellableSleepAction
|
static class |
ActionServiceImplTest.SleepActionExecuter
This class is only intended for use in JUnit tests. |
static class |
ActionServiceImplTest.SleepActionFilter
This class is only used during JUnit testing. |
Field Summary |
---|
Fields inherited from class org.alfresco.util.BaseAlfrescoSpringTest |
---|
actionService, authenticationComponent, authenticationService, contentService, nodeService, rootNodeRef, storeRef, transactionService |
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 |
Fields inherited from class org.springframework.test.ConditionalTestCase |
---|
logger |
Constructor Summary | |
---|---|
ActionServiceImplTest()
|
Method Summary | |
---|---|
static void |
assertBefore(java.util.Date before,
java.util.Date after)
|
protected Action |
createFailingMoveAction()
|
protected Action |
createFailingSleepAction(java.lang.String id)
|
protected static Action |
createFailingSleepAction(java.lang.String id,
ActionService actionService)
|
protected Action |
createWorkingSleepAction()
|
protected Action |
createWorkingSleepAction(java.lang.String id)
|
protected static Action |
createWorkingSleepAction(java.lang.String id,
ActionService actionService)
|
void |
offtestAsyncLongRunningActionsFilter()
This test checks that a series of "equivalent" actions submitted for asynchronous execution will be correctly filtered so that no 2 equivalent actions are executed at the same time. |
protected void |
onSetUpInTransaction()
On setup in transaction override |
static void |
postAsyncActionTest(TransactionService transactionService,
long sleepTime,
int maxTries,
ActionServiceImplTest.AsyncTest test)
|
void |
testActionOrder()
|
void |
testActionResult()
Test the action result parameter |
void |
testALF5027()
http://issues.alfresco.com/jira/browse/ALF-5027 |
void |
testAsyncCompositeActionExecute()
Test async composite action execution |
void |
testAsyncExecuteAction()
Test asynchronous execute action |
void |
testCompensatingAction()
Test the compensating action |
void |
testConditionOrder()
|
void |
testCreateAction()
Test createAction |
void |
testCreateActionCondition()
Test create action condition |
void |
testCreateCompositeAction()
Test createCompositeAction |
void |
testCreateCompositeActionCondition()
Test createCompositeAction |
void |
testEvaluateAction()
Evaluate action |
void |
testEvaluateActionCondition()
Test evaluate action condition |
void |
testEvaluateCompositeActionConditionWith1SubCondition()
Test evaluate action condition |
void |
testEvaluateCompositeActionConditionWith2SubConditions()
Test evaluate action condition |
void |
testExecuteAction()
Test execute action |
void |
testExecutionTrackingDetails()
Tests that we can read, save, load etc the various execution related details such as started at, ended at, status and exception |
void |
testGetActionConditionDefinition()
Test getActionConditionDefinition |
void |
testGetActionConditionDefinitions()
Test getActionConditionDefinitions |
void |
testGetActionDefinition()
Test getActionDefinition |
void |
testGetActionDefinitions()
Test getActionDefintions |
void |
testGetAndGetAllWithNoActions()
|
void |
testOwningNodeRef()
|
void |
testRemove()
Test remove action |
void |
testSaveActionNoCondition()
Test saving an action with no conditions. |
void |
testSaveActionWithConditions()
Test saving an action with conditions |
void |
testSaveCompositeAction()
Test saving a composite action |
void |
testSyncFailureBehaviour()
Test sync failure behaviour |
void |
xtestAsyncLoadTest()
|
Methods inherited from class org.alfresco.util.BaseAlfrescoSpringTest |
---|
createNode, onTearDownInTransaction |
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, onTearDownAfterTransaction, 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 ActionServiceImplTest()
Method Detail |
---|
protected void onSetUpInTransaction() throws java.lang.Exception
BaseAlfrescoSpringTest
onSetUpInTransaction
in class BaseAlfrescoSpringTest
java.lang.Exception
public void testGetActionDefinition()
public void testGetActionDefinitions()
public void testGetActionConditionDefinition()
public void testGetActionConditionDefinitions()
public void testCreateActionCondition()
public void testCreateCompositeActionCondition()
public void testCreateAction()
public void testCreateCompositeAction()
public void testEvaluateAction()
public void testEvaluateActionCondition()
public void testEvaluateCompositeActionConditionWith1SubCondition()
public void testEvaluateCompositeActionConditionWith2SubConditions()
public void testExecuteAction()
public void testGetAndGetAllWithNoActions()
public void testSaveActionNoCondition()
public void testOwningNodeRef()
public void testSaveActionWithConditions()
public void testSaveCompositeAction()
public void testRemove()
public void testConditionOrder()
public void testActionOrder()
public void testActionResult()
public void offtestAsyncLongRunningActionsFilter()
public void testAsyncExecuteAction()
public void testAsyncCompositeActionExecute()
public void xtestAsyncLoadTest()
public static void postAsyncActionTest(TransactionService transactionService, long sleepTime, int maxTries, ActionServiceImplTest.AsyncTest test)
sleepTime
- maxTries
- test
- context
- public void testSyncFailureBehaviour()
public void testCompensatingAction()
public void testALF5027() throws java.lang.Exception
java.lang.Exception
public void testExecutionTrackingDetails()
protected Action createFailingMoveAction()
protected Action createFailingSleepAction(java.lang.String id) throws java.lang.Exception
java.lang.Exception
protected static Action createFailingSleepAction(java.lang.String id, ActionService actionService) throws java.lang.Exception
java.lang.Exception
protected Action createWorkingSleepAction() throws java.lang.Exception
java.lang.Exception
protected Action createWorkingSleepAction(java.lang.String id) throws java.lang.Exception
java.lang.Exception
protected static Action createWorkingSleepAction(java.lang.String id, ActionService actionService) throws java.lang.Exception
java.lang.Exception
public static void assertBefore(java.util.Date before, java.util.Date after)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |