spellcast.test
Class PropertyChangeListenerTester
java.lang.Object
spellcast.test.PropertyChangeListenerTester
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
public class PropertyChangeListenerTester
- extends java.lang.Object
- implements java.beans.PropertyChangeListener
This class checks to see that properties it receives
via PropertyChangeListener
are expected.
If any unexpected property is received then a JUnit
assertion failure is thrown.
After all properties have been tested then check to make sure
that each property as been received at least once. If a property
has not been received then a JUnit assertion failure is thrown.
- Author:
- Barrie Treloar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyChangeListenerTester
public PropertyChangeListenerTester()
- Create a
PropertyChangeListenerTester
.
addProperty
public final void addProperty(java.lang.String aProperty)
start
public final void start()
stop
public final void stop()
propertyChange
public final void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
Copyright © 2001-2005 Spellcast. All Rights Reserved.