org.mule.context.notification
Class NotificationManagerTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.context.notification.NotificationManagerTestCase

public class NotificationManagerTestCase
extends AbstractMuleTestCase


Field Summary
protected  Listener1 listener1
           
protected  Listener2 listener2
           
protected  ServerNotificationManager manager
           
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
NotificationManagerTestCase()
           
 
Method Summary
protected  void assertNoEventsEnabled()
           
protected  void assertNoListenersNotified()
           
protected  void assertStandardEventsEnabled()
           
protected  void registerDefaultEvents()
           
protected  void registerDefaultListeners()
           
 void setUpListeners()
           
 void testAssociationOfInterfacesAndEvents()
           
 void testDynamicManagerDecisions()
           
 void testDynamicResponseToDisablingEvents()
           
 void testDynamicResponseToDisablingInterfaces()
           
 void testNoListenersMeansNoEvents()
           
 void testNonDynamicManagerDecisions()
          When the manager is not dynamic (the default), decisions should not change
 void testNotification()
           
 void testPolicyCaching()
          A new policy should only be generated when the configuration changes
 
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

listener1

protected Listener1 listener1

listener2

protected Listener2 listener2

manager

protected ServerNotificationManager manager
Constructor Detail

NotificationManagerTestCase

public NotificationManagerTestCase()
Method Detail

setUpListeners

public void setUpListeners()

registerDefaultEvents

protected void registerDefaultEvents()
                              throws ClassNotFoundException
Throws:
ClassNotFoundException

testNoListenersMeansNoEvents

public void testNoListenersMeansNoEvents()
                                  throws ClassNotFoundException
Throws:
ClassNotFoundException

assertNoEventsEnabled

protected void assertNoEventsEnabled()

registerDefaultListeners

protected void registerDefaultListeners()

testAssociationOfInterfacesAndEvents

public void testAssociationOfInterfacesAndEvents()
                                          throws ClassNotFoundException
Throws:
ClassNotFoundException

assertStandardEventsEnabled

protected void assertStandardEventsEnabled()

testDynamicResponseToDisablingEvents

public void testDynamicResponseToDisablingEvents()
                                          throws ClassNotFoundException
Throws:
ClassNotFoundException

testDynamicResponseToDisablingInterfaces

public void testDynamicResponseToDisablingInterfaces()
                                              throws ClassNotFoundException
Throws:
ClassNotFoundException

testPolicyCaching

public void testPolicyCaching()
                       throws ClassNotFoundException
A new policy should only be generated when the configuration changes

Throws:
ClassNotFoundException

testDynamicManagerDecisions

public void testDynamicManagerDecisions()
                                 throws ClassNotFoundException
Throws:
ClassNotFoundException

testNonDynamicManagerDecisions

public void testNonDynamicManagerDecisions()
                                    throws ClassNotFoundException
When the manager is not dynamic (the default), decisions should not change

Throws:
ClassNotFoundException

testNotification

public void testNotification()
                      throws ClassNotFoundException
Throws:
ClassNotFoundException

assertNoListenersNotified

protected void assertNoListenersNotified()


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.