org.puremvc.java.patterns.observer
Class ObserverTest

java.lang.Object
  extended by org.puremvc.java.patterns.observer.ObserverTest

public class ObserverTest
extends java.lang.Object

Tests PureMVC Observer class.

Since the Observer encapsulates the interested object's callback information, there are no getters, only setters. It is, in effect write-only memory.

Therefore, the only way to test it is to set the notification method and context and call the notifyObserver method.


Constructor Summary
ObserverTest()
           
 
Method Summary
 void testCompareNotifyContext()
          Tests the compareNotifyContext method of the Observer class
 void testObserverAccessors()
          Tests observer class when initialized by accessor methods.
 void testObserverConstructor()
          Tests observer class when initialized by constructor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObserverTest

public ObserverTest()
Method Detail

testObserverAccessors

public void testObserverAccessors()
Tests observer class when initialized by accessor methods.


testObserverConstructor

public void testObserverConstructor()
Tests observer class when initialized by constructor.


testCompareNotifyContext

public void testCompareNotifyContext()
Tests the compareNotifyContext method of the Observer class