Manager { public Manager(Args args, String commandName) throws Exception { this.args = args; this.commandName = commandName; } Manager(Args args, String commandName); static void main(String[] args); void run(); static final String INVALID_COMMAND; static final String INVALID_ZOOKEEPER; }
@Test public void testManager() throws Exception { String commandName = "assign"; String[] args = {commandName, "zookeeper", "table"}; Args argsObject = Manager.parseArgs(args); new Manager(argsObject, commandName); }