|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mule.tck.junit4.AbstractMuleTestCase
org.mule.tck.junit4.AbstractMuleContextTestCase
org.mule.tck.junit4.FunctionalTestCase
org.mule.modules.tests.ConnectorTestCase
public abstract class ConnectorTestCase
Connector Tests Framework Parent Class
| Field Summary | |
|---|---|
protected static String |
DEFAULT_SPRING_CONFIG_FILE
|
protected static List<String> |
SPRING_CONFIG_FILES
|
| Fields inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase |
|---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE |
| Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase |
|---|
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY |
| Constructor Summary | |
|---|---|
ConnectorTestCase()
|
|
| Method Summary | ||
|---|---|---|
protected static void |
addConfigSpringFile(String fileLocation)
Add a file to be loaded on the spring context. |
|
static void |
beforeClass()
|
|
|
getBeanFromContext(String beanId)
|
|
protected String |
getConfigResources()
|
|
protected static String[] |
getConfigSpringFiles()
|
|
protected String |
getConfigXmlFile()
|
|
Set<String> |
getTestRunMessageKeySet()
|
|
|
getTestRunMessagePayload()
|
|
|
getTestRunMessageValue(String key)
|
|
void |
initializeTestRunMessage(Object data)
|
|
protected void |
initializeTestRunMessage(String beanId)
If beanId belongs to a POJO it is set as payloadContent. |
|
void |
initializeTestRunMessage(String key,
Object value)
|
|
boolean |
keyContainedInTestRunMessage(Object key)
|
|
void |
loadTestRunMessage(Map<String,Object> data)
Deprecated. |
|
protected void |
loadTestRunMessage(String beanId)
Deprecated. |
|
protected org.mule.construct.Flow |
lookupFlowConstruct(String name)
|
|
void |
removeFromTestRunMessage(String key)
|
|
protected
|
runFlowAndGetInvocationProperty(String flowName,
String invocationProperty)
|
|
protected org.mule.api.MuleMessage |
runFlowAndGetMessage(String flowName)
TestRunMessage is already loaded with values for the operation |
|
protected org.mule.api.MuleMessage |
runFlowAndGetMessage(String flowName,
String beanId)
Returns the MuleMessage containing the payload of the operation. |
|
protected
|
runFlowAndGetPayload(String flowName)
TestRunMessage is already loaded with values for the operation |
|
protected
|
runFlowAndGetPayload(String flowName,
String beanId)
Returns the Payload of the flowName operation. |
|
protected static void |
setConfigSpringFiles(List<String> configFilesLocation)
Replace the list of spring beans to be loaded into the context. |
|
void |
upsertBeanFromContextOnTestRunMessage(String beanId)
|
|
void |
upsertBeanFromContextOnTestRunMessage(String key,
String beanId)
|
|
void |
upsertOnTestRunMessage(Map<String,Object> data)
|
|
void |
upsertOnTestRunMessage(String key,
Object value)
|
|
void |
upsertPayloadContentOnTestRunMessage(Object payloadContent)
|
|
| Methods inherited from class org.mule.tck.junit4.FunctionalTestCase |
|---|
clearFlowAssertions, getBuilder, getComponent, getComponent, getConfigFile, getConfigFiles, getFlowConstruct, getFunctionalTestComponent, loadResource, loadResourceAsString, runFlow, runFlow, runFlowAndExpect, runFlowAndExpectProperty, runFlowWithPayloadAndExpect, stopFlowConstruct, testFlow, testFlow |
| Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase |
|---|
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext |
| Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase |
|---|
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String DEFAULT_SPRING_CONFIG_FILE
protected static List<String> SPRING_CONFIG_FILES
| Constructor Detail |
|---|
public ConnectorTestCase()
| Method Detail |
|---|
public static void beforeClass()
protected static String[] getConfigSpringFiles()
protected static void addConfigSpringFile(String fileLocation)
Note:This method must be called from a static initializer static \{...\}
fileLocation - The location of the file containing the spring beans definitionsprotected static void setConfigSpringFiles(List<String> configFilesLocation)
Note:This method must be called from a static initializer static \{...\}
configFilesLocation - The list with the files location containing the spring beans definitionsprotected String getConfigResources()
getConfigResources in class org.mule.tck.junit4.FunctionalTestCaseprotected String getConfigXmlFile()
protected org.mule.construct.Flow lookupFlowConstruct(String name)
lookupFlowConstruct in class org.mule.tck.junit4.FunctionalTestCase@Deprecated protected void loadTestRunMessage(String beanId)
data - @Deprecated public void loadTestRunMessage(Map<String,Object> data)
data - protected void initializeTestRunMessage(String beanId)
public void initializeTestRunMessage(String key,
Object value)
public void initializeTestRunMessage(Object data)
public <T> T getBeanFromContext(String beanId)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic void upsertBeanFromContextOnTestRunMessage(String beanId)
public void upsertBeanFromContextOnTestRunMessage(String key,
String beanId)
public void upsertOnTestRunMessage(String key,
Object value)
public void upsertOnTestRunMessage(Map<String,Object> data)
public void upsertPayloadContentOnTestRunMessage(Object payloadContent)
public <T> T getTestRunMessagePayload()
public <T> T getTestRunMessageValue(String key)
public void removeFromTestRunMessage(String key)
public boolean keyContainedInTestRunMessage(Object key)
public Set<String> getTestRunMessageKeySet()
protected <T> T runFlowAndGetPayload(String flowName)
throws Exception
flowName -
Exception
protected org.mule.api.MuleMessage runFlowAndGetMessage(String flowName)
throws Exception
flowName -
Exception
protected <T> T runFlowAndGetInvocationProperty(String flowName,
String invocationProperty)
throws Exception
flowName - invocationProperty -
Exception
protected org.mule.api.MuleMessage runFlowAndGetMessage(String flowName,
String beanId)
throws Exception
flowName - beanId - is the id of a map Spring bean declared in the AutomationSpringBeans
Exception
protected <T> T runFlowAndGetPayload(String flowName,
String beanId)
throws Exception
flowName - beanId - is the id of a map Spring bean declared in the AutomationSpringBeans
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||