| |
|
| csdl.stackmvc.control.command.TestPopCommand
TestPopCommand | public class TestPopCommand extends TestCase (Code) | | Tests operation of the StackMVC Pop command.
author: Jitender Miglani author: Philip Johnson |
Method Summary | |
public static void | main(String[] args) Provide stand-alone execution of this test case during initial development. | public void | testIllegalPop() Tests that stackMVC signals an error when an empty stack is popped. | public void | testLegalPop() Tests the stackMVC pop operation under normal situation. |
TestPopCommand | public TestPopCommand(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 |
testIllegalPop | public void testIllegalPop() throws Exception(Code) | | Tests that stackMVC signals an error when an empty stack is popped.
throws: Exception - If problems occur during test. |
testLegalPop | public void testLegalPop() throws Exception(Code) | | Tests the stackMVC pop operation under normal situation.
throws: Exception - If problems occur during test. |
|
|
|