public class ActionServiceImplTest extends BaseAlfrescoSpringTest
| Modifier and Type | Class and Description |
|---|---|
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.
|
static class |
ActionServiceImplTest.TransientFailActionExecuter
This class is only intended for use in JUnit tests.
|
actionService, authenticationComponent, authenticationService, contentService, nodeService, rootNodeRef, storeRef, transactionServicesessionFactoryjdbcTemplatetransactionDefinition, transactionManager, transactionStatusAUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO| Constructor and Description |
|---|
ActionServiceImplTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertBefore(java.util.Date before,
java.util.Date after) |
protected Action |
createFailingMoveAction(boolean isFatal)
This method returns an
Action which will fail when executed. |
protected Action |
createFailingSleepAction(java.lang.String id,
boolean isFatal) |
protected static Action |
createFailingSleepAction(java.lang.String id,
boolean isFatal,
ActionService actionService) |
protected Action |
createWorkingSleepAction() |
protected Action |
createWorkingSleepAction(java.lang.String id) |
protected static Action |
createWorkingSleepAction(java.lang.String id,
ActionService actionService) |
protected java.lang.String[] |
getConfigLocations()
Get the config locations
|
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() |
createNode, onTearDownInTransactionflushAndClear, getSession, loadContext, setSessionFactorycountRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncodingendTransaction, isDefaultRollback, isRollback, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownAfterTransaction, 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 java.lang.String[] getConfigLocations()
BaseSpringTestgetConfigLocations in class BaseSpringTestprotected void onSetUpInTransaction()
throws java.lang.Exception
BaseAlfrescoSpringTestonSetUpInTransaction in class BaseAlfrescoSpringTestjava.lang.Exceptionpublic 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.Exceptionpublic void testExecutionTrackingDetails()
protected Action createFailingMoveAction(boolean isFatal)
Action which will fail when executed.isFatal - if false this will give an action which throws
a non-fatal action exception.protected Action createFailingSleepAction(java.lang.String id, boolean isFatal) throws java.lang.Exception
java.lang.Exceptionprotected static Action createFailingSleepAction(java.lang.String id, boolean isFatal, ActionService actionService) throws java.lang.Exception
java.lang.Exceptionprotected Action createWorkingSleepAction() throws java.lang.Exception
java.lang.Exceptionprotected Action createWorkingSleepAction(java.lang.String id) throws java.lang.Exception
java.lang.Exceptionprotected static Action createWorkingSleepAction(java.lang.String id, ActionService actionService) throws java.lang.Exception
java.lang.Exceptionpublic static void assertBefore(java.util.Date before,
java.util.Date after)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.