|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.event.TestEventSource
public class TestEventSource
Test class for EventSource.
Constructor Summary | |
---|---|
TestEventSource()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
testAddConfigurationListener()
Tests registering a new listener. |
void |
testAddErrorListener()
Tests registering a new error listener. |
void |
testAddNullConfigurationListener()
Tests adding an undefined configuration listener. |
void |
testAddNullErrorListener()
Tests adding an undefined error listener. |
void |
testClone()
Tests cloning an event source object. |
void |
testFireError()
Tests delivering an error event to a listener. |
void |
testFireErrorNoListeners()
Tests firing an error event if there are no error listeners. |
void |
testFireEvent()
Tests delivering an event to a listener. |
void |
testFireEventNoDetails()
Tests generating a detail event if detail events are not allowed. |
void |
testFireEventNoListeners()
Tests firing an event if there are no listeners. |
void |
testGetConfigurationListenersAddNew()
Tests that the collection returned by getConfigurationListeners() is really a snapshot. |
void |
testGetConfigurationListenersUpdate()
Tests whether the listeners list is read only. |
void |
testGetErrorListenersUpdate()
Tests whether the listeners list is read only. |
void |
testInit()
Tests a newly created source object. |
void |
testRemoveConfigurationListener()
Tests removing a listener. |
void |
testRemoveErrorListener()
Tests removing an error listener. |
void |
testRemoveListenerInFireEvent()
Tests whether an event listener can deregister itself in reaction of a delivered event. |
void |
testRemoveNullConfigurationListener()
Tests if a null listener can be removed. |
void |
testRemoveNullErrorListener()
Tests if a null error listener can be removed. |
void |
testSetDetailEvents()
Tests enabling and disabling the detail events flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestEventSource()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void testInit()
public void testAddConfigurationListener()
public void testAddNullConfigurationListener()
public void testRemoveConfigurationListener()
public void testRemoveNullConfigurationListener()
public void testGetConfigurationListenersUpdate()
public void testGetConfigurationListenersAddNew()
public void testSetDetailEvents()
public void testFireEvent()
public void testFireEventNoListeners()
public void testFireEventNoDetails()
public void testRemoveListenerInFireEvent()
public void testAddErrorListener()
public void testAddNullErrorListener()
public void testRemoveErrorListener()
public void testRemoveNullErrorListener()
public void testGetErrorListenersUpdate()
public void testFireError()
public void testFireErrorNoListeners()
public void testClone() throws CloneNotSupportedException
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |