|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.event.AbstractTestConfigurationEvents
org.apache.commons.configuration.event.AbstractTestFileConfigurationEvents
public abstract class AbstractTestFileConfigurationEvents
A base test class that can be used for testing file-based configurations. This class tests reload events, too.
Field Summary |
---|
Fields inherited from class org.apache.commons.configuration.event.AbstractTestConfigurationEvents |
---|
config, l |
Constructor Summary | |
---|---|
AbstractTestFileConfigurationEvents()
|
Method Summary | |
---|---|
protected abstract URL |
getSourceURL()
Returns the URL of the file to be loaded. |
protected void |
setUpFileConfiguration()
Initializes the file configuration for the tests. |
void |
testAccessPropertiesOnReload()
Tests accessing a property during a reload event to ensure that no infinite loops are possible. |
void |
testReloadEvent()
Tests events generated by the reload() method. |
void |
testReloadEventWithDetails()
Tests events generated by the reload() method when detail events are enabled. |
Methods inherited from class org.apache.commons.configuration.event.AbstractTestConfigurationEvents |
---|
createConfiguration, setUp, testAddPropertyEvent, testAddPropertyEventWithDetails, testClearEvent, testClearEventWithDetails, testClearPropertyEvent, testClearPropertyEventWithDetails, testSetPropertyEvent, testSetPropertyEventWithDetails |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTestFileConfigurationEvents()
Method Detail |
---|
protected void setUpFileConfiguration() throws ConfigurationException, IOException
ConfigurationException
- if an error occurs
IOException
protected abstract URL getSourceURL() throws IOException
IOException
- if an error occurspublic void testReloadEvent() throws ConfigurationException, IOException
ConfigurationException
IOException
public void testReloadEventWithDetails() throws ConfigurationException, IOException
ConfigurationException
IOException
public void testAccessPropertiesOnReload() throws ConfigurationException, IOException
ConfigurationException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |