public abstract class AbstractJdbcFunctionalTestCase extends AbstractMuleContextTestCase
Modifier and Type | Class and Description |
---|---|
static class |
AbstractJdbcFunctionalTestCase.JdbcFunctionalTestComponent |
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_CONNECTION_STRING |
static String |
CLIENT_DRIVER_NAME |
protected Connector |
connector |
static String |
CONNECTOR_NAME |
protected DataSource |
dataSource |
static String |
DEFAULT_IN_URI |
static String |
DEFAULT_MESSAGE |
static String |
DEFAULT_OUT_URI |
static String |
EMBEDDED_CONNECTION_STRING |
static String |
EMBEDDED_DRIVER_NAME |
protected Model |
model |
static String |
SQL_ACK |
static String |
SQL_READ |
static String |
SQL_WRITE |
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
AbstractJdbcFunctionalTestCase() |
Modifier and Type | Method and Description |
---|---|
protected DataSource |
createClientDataSource() |
Connector |
createConnector() |
protected DataSource |
createDataSource() |
protected DataSource |
createEmbeddedDataSource() |
protected void |
doSetUp()
Enables the adding of extra behavior on the set up stage of a test right
after the creation of the mule context in
AbstractMuleContextTestCase.setUpMuleContext() . |
protected void |
emptyTable() |
protected Object[] |
execSqlQuery(String sql) |
protected int |
execSqlUpdate(String sql) |
Connection |
getConnection() |
DataSource |
getDataSource() |
protected String |
getInDest() |
protected String |
getOutDest() |
static void |
startDatabase() |
static void |
stopDatabase() |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public static final String DEFAULT_IN_URI
public static final String DEFAULT_OUT_URI
public static final String CONNECTOR_NAME
public static final String DEFAULT_MESSAGE
public static final String SQL_READ
public static final String SQL_ACK
public static final String SQL_WRITE
public static String EMBEDDED_CONNECTION_STRING
public static final String EMBEDDED_DRIVER_NAME
public static String CLIENT_CONNECTION_STRING
public static final String CLIENT_DRIVER_NAME
protected Connector connector
protected Model model
protected DataSource dataSource
public static void stopDatabase() throws SQLException
SQLException
protected void doSetUp() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.setUpMuleContext()
.
Under normal circumstances this method could be replaced by a
@Before
annotated method.
doSetUp
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the test casepublic Connection getConnection() throws Exception
Exception
public DataSource getDataSource() throws Exception
Exception
protected String getInDest()
protected String getOutDest()
protected DataSource createDataSource() throws Exception
Exception
protected DataSource createEmbeddedDataSource() throws Exception
Exception
protected DataSource createClientDataSource() throws Exception
Exception
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.