|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.puremvc.java.patterns.observer.ObserverTest
public class ObserverTest
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 |
---|
public ObserverTest()
Method Detail |
---|
public void testObserverAccessors()
public void testObserverConstructor()
public void testCompareNotifyContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |