public class RuleServiceImplTest extends BaseRuleTest
ACTION_DEF_NAME, ACTION_PROP_NAME_1, ACTION_PROP_VALUE_1, actionService, authenticationComponent, COND_PROP_NAME_1, COND_PROP_VALUE_1, CONDITION_DEF_NAME, configFolder, configService, contentService, DESCRIPTION, nodeRef, nodeService, rootNodeRef, RULE_TYPE_NAME, ruleService, ruleType, testStoreRef, TITLE, transactionServicesessionFactoryjdbcTemplatetransactionDefinition, transactionManager, transactionStatusAUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO| Constructor and Description |
|---|
RuleServiceImplTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onSetUpInTransaction()
onSetUpInTransaction implementation
|
void |
testAddRule()
Test addRule
|
void |
testCyclicAsyncRules() |
void |
testCyclicGraphWithInheritedRules()
Ensure that the rule store can cope with a cyclic node graph
|
void |
testCyclicRules() |
void |
testDeleteSpaceWithExecuteScriptRule() |
void |
testGetRules()
Test get rules
|
void |
testGetRulesOrder()
Ensure the rules are retrieved in the correct order
|
void |
testGetRuleType()
Test get rule type
|
void |
testIgnoreInheritedRules() |
void |
testPermissionsForPropagatedRules_ALF_8408() |
void |
testRemoveAllRules() |
void |
testRemoveRule() |
void |
testRuleDuplication()
Ensures that rules are not duplicated when inherited
|
void |
testRuleInheritance()
Tests the rule inheritance within the store, checking that the cache is reset correctly when
rules are added and removed.
|
void |
testRulesDisabled()
Test disabling the rules
|
void |
testRuleServicePermissionsConsumer() |
void |
testRuleServicePermissionsCoordinator() |
void |
testRuleServicePermissionsEditor() |
addRulesAspect, checkRule, createTestRule, createTestRule, createTestRule, onTearDownInTransactionflushAndClear, getConfigLocations, 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 void onSetUpInTransaction()
throws java.lang.Exception
BaseRuleTestonSetUpInTransaction in class BaseRuleTestjava.lang.Exceptionpublic void testGetRuleType()
public void testAddRule()
public void testRemoveRule()
public void testRemoveAllRules()
public void testGetRules()
public void testGetRulesOrder()
public void testIgnoreInheritedRules()
public void testRulesDisabled()
public void testRuleServicePermissionsConsumer()
public void testRuleServicePermissionsEditor()
public void testRuleServicePermissionsCoordinator()
public void testRuleInheritance()
public void testCyclicGraphWithInheritedRules()
throws java.lang.Exception
java.lang.Exceptionpublic void testRuleDuplication()
public void testCyclicRules()
public void testCyclicAsyncRules()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteSpaceWithExecuteScriptRule()
throws java.lang.Exception
java.lang.Exceptionpublic void testPermissionsForPropagatedRules_ALF_8408()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.