|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.configuration.event.AbstractTestConfigurationEvents
public abstract class AbstractTestConfigurationEvents
Base class for testing events generated by configuration classes derived from
AbstractConfiguration. This class implements a couple of tests related to
event generation. Concrete sub classes only have to implement the
createConfiguration() method for creating an instance of a
specific configuration class. Because tests for detail events depend on a
concrete implementation an exact sequence of events cannot be checked.
Instead the corresponding test methods check whether the enclosing events
(not the detail events) are of the expected type.
| Field Summary | |
|---|---|
protected org.apache.commons.configuration.AbstractConfiguration |
config
The configuration to be tested. |
protected ConfigurationListenerTestImpl |
l
A test event listener. |
| Constructor Summary | |
|---|---|
AbstractTestConfigurationEvents()
|
|
| Method Summary | |
|---|---|
protected abstract org.apache.commons.configuration.AbstractConfiguration |
createConfiguration()
Creates the configuration instance to be tested. |
void |
setUp()
|
void |
testAddPropertyEvent()
Tests events generated by addProperty(). |
void |
testAddPropertyEventWithDetails()
Tests events generated by addProperty() when detail events are enabled. |
void |
testClearEvent()
Tests the events generated by the clear() method. |
void |
testClearEventWithDetails()
Tests the events generated by the clear method when detail events are enabled. |
void |
testClearPropertyEvent()
Tests events generated by clearProperty(). |
void |
testClearPropertyEventWithDetails()
Tests events generated by clearProperty() when detail events are enabled. |
void |
testSetPropertyEvent()
Tests events generated by setProperty(). |
void |
testSetPropertyEventWithDetails()
Tests events generated by setProperty() when detail events are enabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.configuration.AbstractConfiguration config
protected ConfigurationListenerTestImpl l
| Constructor Detail |
|---|
public AbstractTestConfigurationEvents()
| Method Detail |
|---|
public void setUp()
throws Exception
Exceptionprotected abstract org.apache.commons.configuration.AbstractConfiguration createConfiguration()
public void testAddPropertyEvent()
public void testAddPropertyEventWithDetails()
public void testClearPropertyEvent()
public void testClearPropertyEventWithDetails()
public void testSetPropertyEvent()
public void testSetPropertyEventWithDetails()
public void testClearEvent()
public void testClearEventWithDetails()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||