org.mule.modules.tests
Class ConnectorTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.tck.junit4.FunctionalTestCase
              extended by org.mule.modules.tests.ConnectorTestCase

public abstract class ConnectorTestCase
extends org.mule.tck.junit4.FunctionalTestCase

Connector Tests Framework Parent Class

Author:
Mulesoft, Inc

Field Summary
protected static String DEFAULT_SPRING_CONFIG_FILE
           
protected static 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
static void beforeClass()
           
 boolean containsKeyTestRunMessage(Object key)
           
<T> T
getBeanFromContext(String beanId)
           
protected  String getConfigResources()
           
protected static String[] getConfigSpringFiles()
           
protected  String getConfigXmlFile()
           
<T> T
getTestRunMessageValue(String key)
           
 void loadTestRunMessage(Map<String,Object> data)
           
protected  void loadTestRunMessage(String beanId)
           
protected  org.mule.construct.Flow lookupFlowConstruct(String name)
           
 void removeFromTestRunMessage(String key)
           
protected
<T> T
runFlowAndGetPayload(String flowName)
           
protected
<T> T
runFlowAndGetPayload(String flowName, String beanId)
           
 void upsertOnTestRunMessage(Map<String,Object> data)
           
 void upsertOnTestRunMessage(String key, Object value)
           
 
Methods inherited from class org.mule.tck.junit4.FunctionalTestCase
clearFlowAssertions, getBuilder, getComponent, getComponent, 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, doTearDown, 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

DEFAULT_SPRING_CONFIG_FILE

protected static final String DEFAULT_SPRING_CONFIG_FILE
See Also:
Constant Field Values

SPRING_CONFIG_FILES

protected static final String[] SPRING_CONFIG_FILES
Constructor Detail

ConnectorTestCase

public ConnectorTestCase()
Method Detail

beforeClass

public static void beforeClass()

getConfigSpringFiles

protected static String[] getConfigSpringFiles()

getConfigResources

protected String getConfigResources()
Specified by:
getConfigResources in class org.mule.tck.junit4.FunctionalTestCase

getConfigXmlFile

protected String getConfigXmlFile()

lookupFlowConstruct

protected org.mule.construct.Flow lookupFlowConstruct(String name)
Overrides:
lookupFlowConstruct in class org.mule.tck.junit4.FunctionalTestCase

runFlowAndGetPayload

protected <T> T runFlowAndGetPayload(String flowName)
                          throws Exception
Throws:
Exception

runFlowAndGetPayload

protected <T> T runFlowAndGetPayload(String flowName,
                                     String beanId)
                          throws Exception
Throws:
Exception

loadTestRunMessage

protected void loadTestRunMessage(String beanId)

loadTestRunMessage

public void loadTestRunMessage(Map<String,Object> data)

getBeanFromContext

public <T> T getBeanFromContext(String beanId)
                     throws org.springframework.beans.BeansException
Throws:
org.springframework.beans.BeansException

upsertOnTestRunMessage

public void upsertOnTestRunMessage(String key,
                                   Object value)

upsertOnTestRunMessage

public void upsertOnTestRunMessage(Map<String,Object> data)

getTestRunMessageValue

public <T> T getTestRunMessageValue(String key)

removeFromTestRunMessage

public void removeFromTestRunMessage(String key)

containsKeyTestRunMessage

public boolean containsKeyTestRunMessage(Object key)


Copyright © 2013. All rights reserved.