|
|||||||||
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.rule.BaseRuleTest
org.alfresco.repo.rule.RuleServiceImplTest
public class RuleServiceImplTest
Rule service implementation test
Field Summary |
---|
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.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 | |
---|---|
RuleServiceImplTest()
|
Method Summary | |
---|---|
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 |
testGetRules()
Test get rules |
void |
testGetRulesOrder()
Ensure the rules are retrieved in the correct order |
void |
testGetRuleType()
Test get rule type |
void |
testIgnoreInheritedRules()
|
void |
testRemoveAllRules()
|
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()
|
Methods inherited from class org.alfresco.repo.rule.BaseRuleTest |
---|
addRulesAspect, checkRule, createTestRule, createTestRule, createTestRule, 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 RuleServiceImplTest()
Method Detail |
---|
protected void onSetUpInTransaction() throws java.lang.Exception
BaseRuleTest
onSetUpInTransaction
in class BaseRuleTest
java.lang.Exception
public void testGetRuleType()
public void testAddRule()
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.Exception
public void testRuleDuplication()
public void testCyclicRules()
public void testCyclicAsyncRules() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |