org.alfresco.repo.rule
Class RuleServiceImplTest
java.lang.Object
junit.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.rule.BaseRuleTest
org.alfresco.repo.rule.RuleServiceImplTest
- All Implemented Interfaces:
- junit.framework.Test
public class RuleServiceImplTest
- extends BaseRuleTest
Rule service implementation test
Fields inherited from class org.alfresco.repo.rule.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, transactionService |
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 |
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 |
RuleServiceImplTest
public RuleServiceImplTest()
onSetUpInTransaction
protected void onSetUpInTransaction()
throws java.lang.Exception
- Description copied from class:
BaseRuleTest
- onSetUpInTransaction implementation
- Overrides:
onSetUpInTransaction
in class BaseRuleTest
- Throws:
java.lang.Exception
testGetRuleType
public void testGetRuleType()
- Test get rule type
testAddRule
public void testAddRule()
- Test addRule
testRemoveRule
public void testRemoveRule()
testRemoveAllRules
public void testRemoveAllRules()
testGetRules
public void testGetRules()
- Test get rules
testGetRulesOrder
public void testGetRulesOrder()
- Ensure the rules are retrieved in the correct order
testIgnoreInheritedRules
public void testIgnoreInheritedRules()
testRulesDisabled
public void testRulesDisabled()
- Test disabling the rules
testRuleServicePermissionsConsumer
public void testRuleServicePermissionsConsumer()
testRuleServicePermissionsEditor
public void testRuleServicePermissionsEditor()
testRuleServicePermissionsCoordinator
public void testRuleServicePermissionsCoordinator()
testRuleInheritance
public void testRuleInheritance()
- Tests the rule inheritance within the store, checking that the cache is reset correctly when
rules are added and removed.
testCyclicGraphWithInheritedRules
public void testCyclicGraphWithInheritedRules()
throws java.lang.Exception
- Ensure that the rule store can cope with a cyclic node graph
- Throws:
java.lang.Exception
testRuleDuplication
public void testRuleDuplication()
- Ensures that rules are not duplicated when inherited
testCyclicRules
public void testCyclicRules()
testCyclicAsyncRules
public void testCyclicAsyncRules()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDeleteSpaceWithExecuteScriptRule
public void testDeleteSpaceWithExecuteScriptRule()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPermissionsForPropagatedRules_ALF_8408
public void testPermissionsForPropagatedRules_ALF_8408()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.