|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.ConfigurationErrorListenerImpl
public class ConfigurationErrorListenerImpl
An implementation of the ConfigurationErrorListener
interface
that can be used in unit tests. This implementation just records received
events and allows to test whether expected errors occurred.
Constructor Summary | |
---|---|
ConfigurationErrorListenerImpl()
|
Method Summary | |
---|---|
void |
configurationError(ConfigurationErrorEvent event)
An error event is received. |
int |
getErrorCount()
Returns the number of received error events. |
ConfigurationErrorEvent |
getLastEvent()
Returns the last received error event. |
void |
verify()
Checks whether no error event was received. |
void |
verify(int type,
String propName,
Object propValue)
Checks whether an expected error event was received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationErrorListenerImpl()
Method Detail |
---|
public void configurationError(ConfigurationErrorEvent event)
configurationError
in interface ConfigurationErrorListener
event
- the error eventpublic ConfigurationErrorEvent getLastEvent()
public int getErrorCount()
public void verify()
public void verify(int type, String propName, Object propValue)
type
- the type of the eventpropName
- the name of the propertypropValue
- the value of the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |