org.puremvc.java.core
Class ModelTest

java.lang.Object
  extended by org.puremvc.java.core.ModelTest

public class ModelTest
extends java.lang.Object

Test the PureMVC Model class.


Constructor Summary
ModelTest()
           
 
Method Summary
 void testGetInstance()
          Tests the Model Singleton Factory Method
 void testHasProxy()
          Tests the hasProxy Method
 void testOnRegisterAndOnRemove()
          Tests that the Model calls the onRegister and onRemove methods
 void testRegisterAndRemoveProxy()
          Tests the proxy removal method.
 void testRegisterAndRetrieveProxy()
          Tests the proxy registration and retrieval methods.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelTest

public ModelTest()
Method Detail

testGetInstance

public void testGetInstance()
Tests the Model Singleton Factory Method


testRegisterAndRetrieveProxy

public void testRegisterAndRetrieveProxy()
Tests the proxy registration and retrieval methods.

Tests registerProxy and retrieveProxy in the same test. These methods cannot currently be tested separately in any meaningful way other than to show that the methods do not throw exception when called.


testRegisterAndRemoveProxy

public void testRegisterAndRemoveProxy()
Tests the proxy removal method.


testHasProxy

public void testHasProxy()
Tests the hasProxy Method


testOnRegisterAndOnRemove

public void testOnRegisterAndOnRemove()
Tests that the Model calls the onRegister and onRemove methods