| |
|
| csdl.stackmvc.control.command.TestDoubleCommand
TestDoubleCommand | public class TestDoubleCommand extends TestCase (Code) | | Tests operation of the StackMVC Double command.
author: Joy Agustin |
Method Summary | |
public static void | main(String[] args) Provide stand-alone execution of this test case during initial development. | public void | testIllegalDouble() Tests that stackMVC signals an error when an empty stack is doubled. | public void | testLegalDouble() Tests the stackMVC double operation under normal situation. |
TestDoubleCommand | public TestDoubleCommand(String name)(Code) | | Required for JUnit.
Parameters: name - Test case name. |
main | public static void main(String[] args)(Code) | | Provide stand-alone execution of this test case during initial development.
Parameters: args - The command line arguments |
testIllegalDouble | public void testIllegalDouble() throws Exception(Code) | | Tests that stackMVC signals an error when an empty stack is doubled.
throws: Exception - If problems occur during test. |
testLegalDouble | public void testLegalDouble() throws Exception(Code) | | Tests the stackMVC double operation under normal situation.
throws: Exception - If problems occur during test. |
|
|
|