@Test public void testEmptyArgsJCommanderBuild() { MultiLangDaemon.MultiLangDaemonArguments arguments = new MultiLangDaemon.MultiLangDaemonArguments(); String[] args = new String[] {}; daemon.buildJCommanderAndParseArgs(arguments, args); assertThat(arguments.propertiesFile, nullValue()); assertThat(arguments.logConfiguration, nullValue()); assertThat(arguments.parameters, empty()); }
JCommander buildJCommanderAndParseArgs(final MultiLangDaemonArguments arguments, final String[] args) { JCommander jCommander = JCommander.newBuilder().programName("amazon-kinesis-client MultiLangDaemon") .addObject(arguments) .build(); jCommander.parse(args); return jCommander; }
MultiLangDaemon { JCommander buildJCommanderAndParseArgs(final MultiLangDaemonArguments arguments, final String[] args) { JCommander jCommander = JCommander.newBuilder().programName("amazon-kinesis-client MultiLangDaemon") .addObject(arguments) .build(); jCommander.parse(args); return jCommander; } }
MultiLangDaemon { JCommander buildJCommanderAndParseArgs(final MultiLangDaemonArguments arguments, final String[] args) { JCommander jCommander = JCommander.newBuilder().programName("amazon-kinesis-client MultiLangDaemon") .addObject(arguments) .build(); jCommander.parse(args); return jCommander; }  }
MultiLangDaemon { JCommander buildJCommanderAndParseArgs(final MultiLangDaemonArguments arguments, final String[] args) { JCommander jCommander = JCommander.newBuilder().programName("amazon-kinesis-client MultiLangDaemon") .addObject(arguments) .build(); jCommander.parse(args); return jCommander; }  static void main(final String[] args); }
MultiLangDaemon { JCommander buildJCommanderAndParseArgs(final MultiLangDaemonArguments arguments, final String[] args) { JCommander jCommander = JCommander.newBuilder().programName("amazon-kinesis-client MultiLangDaemon") .addObject(arguments) .build(); jCommander.parse(args); return jCommander; }  static void main(final String[] args);  }