Methods Summary |
---|
public static void | main(java.lang.String[] args)
if (args.length == 0){
junit.textui.TestRunner.run(ValidCommandsListTest.class);
} else {
junit.textui.TestRunner.run(makeSuite(args));
}
|
private static junit.framework.TestSuite | makeSuite(java.lang.String[] args)
final TestSuite ts = new TestSuite();
for (int i = 0; i < args.length; i++){
ts.addTest(new ValidCommandsListTest(args[i]));
}
return ts;
|
private void | nyi()
fail("Not Yet Implemented");
|
protected void | setUp()
vcl = new ValidCommandsList();
vc = new ValidCommand();
|
protected void | tearDown()
|
public void | testAddGet()
vcl.addCommand(vc);
assertEquals(vc, vcl.getValidCommand(null));
|
public void | testIterator()
vcl.addCommand(vc);
for (Iterator it=vcl.getCommands(); it.hasNext();){
assertEquals(vc, (ValidCommand) it.next());
}
|
public void | testRemove()
vcl.addCommand(vc);
vcl.removeAllCommands();
assertNull(vcl.getValidCommand(null));
assertEquals(0, vcl.size());
|