new CommandFactory(null, null);
fail("Expected NullArgumentException");
} catch (NullArgumentException ignore) {
}
CommandConfig config = new CommandConfig();
String name = "mytest";
String desc = "my test description";
String type = "org.apache.geronimo.twiddle.command.TestCommand";
config.setName(name);
config.setDescription(desc);
config.setCode(type);
commandFactory = new CommandFactory(config, world);
assertEquals(config,commandFactory.getConfig());
try {
commandFactory.create();
} catch (CommandException e) {
fail("Unexpected CommandException: " + e);
}
try {
new CommandFactory(new CommandConfig(), world).create();
fail("Expected CommandException");
} catch (CommandException ignore) {
}
}