org.mule.context.notification
Class AbstractNotificationTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.tck.FunctionalTestCase
                  extended by org.mule.context.notification.AbstractNotificationTestCase
All Implemented Interfaces:
Test, TestCaseWatchdogTimeoutHandler
Direct Known Subclasses:
ComponentMessageNotificationTestCase, EndpointMessageNotificationTestCase, ExceptionNotificationTestCase, MessageNotificationTestCase

public abstract class AbstractNotificationTestCase
extends org.mule.tck.FunctionalTestCase

Tests must define a "notificationLogger" listener


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
callbackCalled, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Constructor Summary
AbstractNotificationTestCase()
           
 
Method Summary
protected  void assertExpectedNotifications(org.mule.context.notification.RestrictedNode spec)
          This is destructive - do not use spec after calling this routine
abstract  void doTest()
           
abstract  org.mule.context.notification.RestrictedNode getSpecification()
           
protected  void logNotifications()
           
protected  void suitePostTearDown()
          Run after all testcase teardowns.
 void testNotifications()
           
abstract  void validateSpecification(org.mule.context.notification.RestrictedNode spec)
           
protected  void verifyAllNotifications(org.mule.context.notification.RestrictedNode spec, Class clazz, int from, int to)
           
 
Methods inherited from class org.mule.tck.FunctionalTestCase
getBuilder, getComponent, getComponent, getConfigResources, getConfigurationResources, loadResource, loadResourceAsString
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
configureMuleContext, createMuleContext, createTestInfo, createWatchdog, disposeManager, doSetUp, doTearDown, getName, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setName, setStartContext, setUp, suitePreSetUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractNotificationTestCase

public AbstractNotificationTestCase()
Method Detail

testNotifications

public final void testNotifications()
                             throws Exception
Throws:
Exception

doTest

public abstract void doTest()
                     throws Exception
Throws:
Exception

getSpecification

public abstract org.mule.context.notification.RestrictedNode getSpecification()

validateSpecification

public abstract void validateSpecification(org.mule.context.notification.RestrictedNode spec)
                                    throws Exception
Throws:
Exception

suitePostTearDown

protected void suitePostTearDown()
                          throws Exception
Description copied from class: AbstractMuleTestCase
Run after all testcase teardowns.

Overrides:
suitePostTearDown in class AbstractMuleTestCase
Throws:
Exception

logNotifications

protected void logNotifications()

assertExpectedNotifications

protected void assertExpectedNotifications(org.mule.context.notification.RestrictedNode spec)
This is destructive - do not use spec after calling this routine


verifyAllNotifications

protected void verifyAllNotifications(org.mule.context.notification.RestrictedNode spec,
                                      Class clazz,
                                      int from,
                                      int to)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.