Methods Summary |
---|
public static void | main(java.lang.String[] args)
final TestRunner runner= new TestRunner();
final TestResult result = runner.doRun(StopDomainCommandTest.suite(), false);
System.exit(result.errorCount() + result.failureCount());
|
private void | nyi()
fail("Not Yet Implemented");
|
protected void | setUp()
final CLIDescriptorsReader cliDescriptorsReader = CLIDescriptorsReader.getInstance();
ValidCommand validCommand = cliDescriptorsReader.getCommand(null);
LocalStringsManagerFactory.setCommandLocalStringsManagerProperties(
CLIDescriptorsReader.getInstance().getProperties());
testCommand = new StopDomainCommand();
testCommand.setName("sampleCommand");
|
public static junit.framework.Test | suite()
TestSuite suite = new TestSuite(StopDomainCommandTest.class);
return suite;
|
protected void | tearDown()
|
public void | testrunCommandNoDomains()
try{
Vector operands = new Vector();
operands.add("UndefinedDomain");
testCommand.setOperands(operands);
testCommand.runCommand();
} catch (Exception e)
{
assertEquals(e.getMessage(), "CLI157 Could not stop the domain UndefinedDomain.");
}
|