public class BasicValidationTestCase extends ExtensionsFunctionalTestCase
Modifier and Type | Class and Description |
---|---|
static class |
BasicValidationTestCase.TestCustomValidator |
Modifier and Type | Field and Description |
---|---|
protected ValidationMessages |
messages |
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 |
---|
BasicValidationTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertInvalid(String flowName,
MuleEvent event,
Message expectedMessage) |
protected void |
assertValid(String flowName,
MuleEvent event) |
void |
customValidationByClass() |
void |
customValidationByRef() |
void |
customValidatorWithCustomMessage() |
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() . |
void |
email() |
void |
empty() |
protected Class<?>[] |
getAnnotatedExtensionClasses() |
protected String |
getConfigFile() |
void |
ip() |
void |
isFalse() |
void |
isTrue() |
void |
keepsPayloadWhenAllValidationsPass() |
void |
matchesRegex() |
void |
notEmpty() |
void |
oneFailInAll() |
void |
size() |
void |
time() |
void |
twoFailuresInAllWithoutException() |
void |
url() |
void |
usesValidatorAsRouter() |
addBuilders, doSetUpBeforeMuleContextCreation, getDescribers
clearFlowAssertions, getBuilder, getComponent, getComponent, getConfigFiles, getConfigResources, getFlowConstruct, getFunctionalTestComponent, getSubFlow, loadResource, loadResourceAsString, lookupFlowConstruct, runFlow, runFlow, runFlow, runFlowAndExpect, runFlowAndExpectProperty, runFlowNonBlocking, runFlowNonBlocking, runFlowNonBlocking, runFlowWithPayloadAndExpect, runSchedulersOnce, stopFlowConstruct, stopFlowSchedulers, testFlow, testFlow, testFlowNonBlocking, testFlowNonBlocking
configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doTearDown, doTearDownAfterMuleContextDispose, getConfigurationResources, getFileInsideWorkingDirectory, getNonBlockingResponse, getNonBlockingTestEventUsingFlow, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, 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
protected ValidationMessages messages
protected String getConfigFile()
getConfigFile
in class FunctionalTestCase
public void keepsPayloadWhenAllValidationsPass() throws Exception
Exception
public void twoFailuresInAllWithoutException() throws Exception
Exception
public void customValidatorWithCustomMessage() throws Exception
Exception
protected Class<?>[] getAnnotatedExtensionClasses()
getAnnotatedExtensionClasses
in class ExtensionsFunctionalTestCase
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 caseprotected void assertValid(String flowName, MuleEvent event) throws Exception
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.