|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.puremvc.java.core.ControllerTest
public class ControllerTest
Test des communication entre ai.
Constructor Summary | |
---|---|
ControllerTest()
|
Method Summary | |
---|---|
void |
testGetInstance()
Tests the Controller Singleton Factory Method |
void |
testHasCommand()
Test hasCommand method. |
void |
testRegisterAndExecuteCommand()
Tests Command registration and execution. |
void |
testRegisterAndRemoveCommand()
Tests Command registration and removal. |
void |
testReregisterAndExecuteCommand()
Tests Removing and Reregistering a Command Tests that when a Command is re-registered that it isn't fired twice. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControllerTest()
Method Detail |
---|
public void testGetInstance()
public void testRegisterAndExecuteCommand()
This test gets a Singleton Controller instance and registers the ControllerTestCommand class to handle 'ControllerTest' Notifications.
It then constructs such a Notification and tells the Controller to execute the associated Command. Success is determined by evaluating a property on an object passed to the Command, which will be modified when the Command executes.
public void testRegisterAndRemoveCommand()
Tests that once a Command is registered and verified working, it can be removed from the Controller.
public void testHasCommand()
public void testReregisterAndExecuteCommand()
Tests that when a Command is re-registered that it isn't fired twice. This involves, minimally, registration with the controller but notification via the View, rather than direct execution of the Controller's executeCommand method as is done above in testRegisterAndRemove. The bug under test was fixed in AS3 Standard Version 2.0.2. If you run the unit tests with 2.0.1 this test will fail.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |