spellcast.test
Class PropertyChangeListenerTester

java.lang.Object
  extended by 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

Constructor Summary
PropertyChangeListenerTester()
          Create a PropertyChangeListenerTester.
 
Method Summary
 void addProperty(java.lang.String aProperty)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyChangeListenerTester

public PropertyChangeListenerTester()
Create a PropertyChangeListenerTester.

Method Detail

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.