@Test(expected = IllegalArgumentException.class) public void testWrongArguments() { FileIndexingHandler handler = getFileIndexingHandler(); handler.parseAndVerifyArguments(Arrays.asList(VCF_BIO_ID.toString(), VCF_NAME), new ApplicationOptions()); handler = getFileIndexingHandler(); handler.parseAndVerifyArguments(Arrays.asList(BED_BIO_ID.toString(), BED_NAME), new ApplicationOptions()); }
@Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.isEmpty() || arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(MINIMUM_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } item = loadFileByNameOrBioID(arguments.get(0)); createTabixIndex = options.isCreateTabixIndex(); }
FileIndexingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.isEmpty() || arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(MINIMUM_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } item = loadFileByNameOrBioID(arguments.get(0)); createTabixIndex = options.isCreateTabixIndex(); } }
FileIndexingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.isEmpty() || arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(MINIMUM_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } item = loadFileByNameOrBioID(arguments.get(0)); createTabixIndex = options.isCreateTabixIndex(); }  }
FileIndexingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.isEmpty() || arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(MINIMUM_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } item = loadFileByNameOrBioID(arguments.get(0)); createTabixIndex = options.isCreateTabixIndex(); }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand(); }
FileIndexingHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (arguments.isEmpty() || arguments.size() != 1) { throw new IllegalArgumentException(MessageConstants.getMessage(MINIMUM_COMMAND_ARGUMENTS, getCommand(), 1, arguments.size())); } item = loadFileByNameOrBioID(arguments.get(0)); createTabixIndex = options.isCreateTabixIndex(); }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand();  }