Methods Summary |
---|
public static void | main(java.lang.String[] args)
final TestRunner runner= new TestRunner();
final TestResult result = runner.doRun(SSLCommandTest.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 SSLCommand();
testCommand.setName("sampleCommand");
|
public static junit.framework.Test | suite()
TestSuite suite = new TestSuite(SSLCommandTest.class);
return suite;
|
protected void | tearDown()
|
public void | testvalidateOptionsInvalidOperand()
testCommand.setOption("type", "http-listener");
try{
testCommand.validateOptions();
}catch (CommandValidationException cve){
assertEquals(cve.getMessage(),
"CLI170 Operand is required for option value http-listener.");
}
|
public void | testvalidateOptionsInvalidType()
testCommand.setOption("type", "invalidType");
try{
testCommand.validateOptions();
}catch (CommandValidationException cve){
assertEquals(cve.getMessage(), "CLI165 Invalid type option value. ");
}
|
public void | testvalidateOptionsValid()
testCommand.setOption("type", "iiop-service");
assertEquals(testCommand.validateOptions(), true);
|