public class BaseRuleTest extends BaseSpringTest
This file contains a number of helpers to reduce the duplication in tests.
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ACTION_DEF_NAME
Action used in tests
|
protected static java.lang.String |
ACTION_PROP_NAME_1 |
protected static org.alfresco.service.namespace.QName |
ACTION_PROP_VALUE_1 |
protected ActionService |
actionService |
protected AuthenticationComponent |
authenticationComponent |
protected static java.lang.String |
COND_PROP_NAME_1 |
protected static java.lang.String |
COND_PROP_VALUE_1 |
protected static java.lang.String |
CONDITION_DEF_NAME
ActionCondition used in tests
|
protected org.alfresco.service.cmr.repository.NodeRef |
configFolder |
protected ConfigurableService |
configService |
protected ContentService |
contentService |
protected static java.lang.String |
DESCRIPTION |
protected org.alfresco.service.cmr.repository.NodeRef |
nodeRef |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
Services
|
protected org.alfresco.service.cmr.repository.NodeRef |
rootNodeRef |
protected static java.lang.String |
RULE_TYPE_NAME
Data used in the tests
|
protected RuleService |
ruleService |
protected RuleType |
ruleType
Rule type used in tests
|
protected org.alfresco.service.cmr.repository.StoreRef |
testStoreRef
Store and node references
|
protected static java.lang.String |
TITLE
Rule values used in tests
|
protected TransactionService |
transactionService |
sessionFactoryjdbcTemplatetransactionDefinition, transactionManager, transactionStatusAUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO| Constructor and Description |
|---|
BaseRuleTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRulesAspect() |
protected void |
checkRule(Rule rule) |
protected Rule |
createTestRule() |
protected Rule |
createTestRule(boolean isAppliedToChildren) |
protected Rule |
createTestRule(boolean isAppliedToChildren,
java.lang.String title) |
protected void |
onSetUpInTransaction()
onSetUpInTransaction implementation
|
protected void |
onTearDownInTransaction() |
flushAndClear, 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 static final java.lang.String RULE_TYPE_NAME
protected static final java.lang.String ACTION_DEF_NAME
protected static final java.lang.String ACTION_PROP_NAME_1
protected static final org.alfresco.service.namespace.QName ACTION_PROP_VALUE_1
protected static final java.lang.String CONDITION_DEF_NAME
protected static final java.lang.String COND_PROP_NAME_1
protected static final java.lang.String COND_PROP_VALUE_1
protected static final java.lang.String TITLE
protected static final java.lang.String DESCRIPTION
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected ContentService contentService
protected RuleService ruleService
protected ConfigurableService configService
protected AuthenticationComponent authenticationComponent
protected RuleType ruleType
protected org.alfresco.service.cmr.repository.StoreRef testStoreRef
protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef
protected org.alfresco.service.cmr.repository.NodeRef nodeRef
protected org.alfresco.service.cmr.repository.NodeRef configFolder
protected ActionService actionService
protected TransactionService transactionService
protected void onSetUpInTransaction()
throws java.lang.Exception
onSetUpInTransaction in class org.springframework.test.AbstractTransactionalSpringContextTestsjava.lang.Exceptionprotected void onTearDownInTransaction()
throws java.lang.Exception
onTearDownInTransaction in class org.springframework.test.AbstractTransactionalSpringContextTestsjava.lang.Exceptionprotected void addRulesAspect()
protected Rule createTestRule()
protected Rule createTestRule(boolean isAppliedToChildren)
protected Rule createTestRule(boolean isAppliedToChildren, java.lang.String title)
protected void checkRule(Rule rule)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.