Methods Summary |
---|
public static void | main(java.lang.String[] args)
if (args.length == 0){
junit.textui.TestRunner.run(CommandExceptionTest.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 CommandExceptionTest(args[i]));
}
return ts;
|
private void | nyi()
fail("Not Yet Implemented");
|
protected void | setUp()
|
protected void | tearDown()
|
public void | testEmptyConstructor()
CommandException ce = new CommandException();
assertNull(ce.getMessage());
|
public void | testEncapsulatedException()
final NullPointerException npe = new NullPointerException("a null pointer");
CommandException ce = new CommandException(npe);
assertEquals("java.lang.NullPointerException: a null pointer", ce.getMessage());
assertEquals(npe, ce.getCause());
|
public void | testFullConstructor()
final String message = "m";
final Throwable t = new Throwable();
CommandException ce = new CommandException(message, t);
assertEquals(message, ce.getMessage());
assertEquals(t, ce.getCause());
|
public void | testSimple()
CommandException ce = new CommandException("this is the message");
assertEquals("this is the message", ce.getMessage());
|