@Test(expected = IllegalArgumentException.class) public void testWrongArguments() { GeneRemovingHandler handler = getGeneRemovingHandler(); ApplicationOptions applicationOptions = new ApplicationOptions(); handler.parseAndVerifyArguments(Collections.emptyList(), applicationOptions); }
@Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } referenceId = loadReferenceId(arguments.get(0)); printJson = options.isPrintJson(); printTable = options.isPrintTable(); }
GeneRemovingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } referenceId = loadReferenceId(arguments.get(0)); printJson = options.isPrintJson(); printTable = options.isPrintTable(); } }
GeneRemovingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } referenceId = loadReferenceId(arguments.get(0)); printJson = options.isPrintJson(); printTable = options.isPrintTable(); }  }
GeneRemovingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } referenceId = loadReferenceId(arguments.get(0)); printJson = options.isPrintJson(); printTable = options.isPrintTable(); }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand(); }
GeneRemovingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } referenceId = loadReferenceId(arguments.get(0)); printJson = options.isPrintJson(); printTable = options.isPrintTable(); }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand();  }