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