public class ServerNotificationsTestCase extends AbstractMuleContextTestCase implements ModelNotificationListener, MuleContextNotificationListener
Modifier and Type | Class and Description |
---|---|
class |
ServerNotificationsTestCase.DummyNotification |
static interface |
ServerNotificationsTestCase.DummyNotificationListener |
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 |
---|
ServerNotificationsTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
doTearDown()
Enables the adding of extra behavior on the tear down stage of a test
before the mule context is disposed in
AbstractMuleContextTestCase.disposeContextPerTest() . |
void |
onNotification(ServerNotification notification) |
void |
testCustomNotifications() |
void |
testCustomNotificationsWithWildcardSubscription() |
void |
testMismatchingUnregistrations() |
void |
testMultipleRegistrations() |
void |
testMultipleRegistrationsDifferentSubscriptions() |
void |
testStandardNotifications() |
void |
testStandardNotificationsWithSubscription() |
void |
testStandardNotificationsWithWildcardSubscription() |
void |
testUnregistering() |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, 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
protected void doTearDown() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.disposeContextPerTest()
.
Under normal circumstances this method could be replace with a
@After
annotated method.
doTearDown
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the testcasepublic void testStandardNotifications() throws Exception
Exception
public void testMultipleRegistrations() throws Exception
Exception
public void testMultipleRegistrationsDifferentSubscriptions() throws Exception
Exception
public void testMismatchingUnregistrations() throws Exception
Exception
public void testStandardNotificationsWithSubscription() throws Exception
Exception
public void testStandardNotificationsWithWildcardSubscription() throws Exception
Exception
public void testCustomNotificationsWithWildcardSubscription() throws Exception
Exception
public void onNotification(ServerNotification notification)
onNotification
in interface ServerNotificationListener
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.