org.puremvc.java.patterns.command
Class SimpleCommandTest

java.lang.Object
  extended by org.puremvc.java.patterns.command.SimpleCommandTest

public class SimpleCommandTest
extends java.lang.Object

Test the PureMVC SimpleCommand class.

See Also:
SimpleCommandTestVO, SimpleCommandTestCommand

Constructor Summary
SimpleCommandTest()
           
 
Method Summary
 void testSimpleCommandExecute()
          Tests the execute method of a SimpleCommand.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCommandTest

public SimpleCommandTest()
Method Detail

testSimpleCommandExecute

public void testSimpleCommandExecute()
Tests the execute method of a SimpleCommand.

This test creates a new Notification, adding a SimpleCommandTestVO as the body. It then creates a SimpleCommandTestCommand and invokes its execute method, passing in the note.

Success is determined by evaluating a property on the object that was passed on the Notification body, which will be modified by the SimpleCommand

.