Methods Summary |
---|
public static void | main(java.lang.String[] args)
final TestRunner runner= new TestRunner();
final TestResult result = runner.doRun(StartAppservCommandTest.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 StartAppservCommand();
testCommand.setName("sampleCommand");
|
public static junit.framework.Test | suite()
TestSuite suite = new TestSuite(StartAppservCommandTest.class);
return suite;
|
protected void | tearDown()
|
public void | testrunCommandNoDomains()
try{
testCommand.setOption("domaindir", System.getProperty("java.io.tmpdir"));
testCommand.runCommand();
} catch (Exception e)
{
//bug in code, missing localized string 'NoDomainsToStart' in LocalStrings.properties
assertEquals(e.getMessage(), "Key not found (NoDomainsToStart)");
}
|