@Test(expected = ApplicationException.class) public void testUnregisteredDataset() { DatasetMovingHandler handler = getDatasetMoveHandler(); ApplicationOptions applicationOptions = new ApplicationOptions(); handler.parseAndVerifyArguments(Collections.singletonList(DATASET_NAME), 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())); } datasetId = parseProjectId(arguments.get(0)); if (options.getParent() != null) { parentId = parseProjectId(options.getParent()); } }
DatasetMovingHandler 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())); } datasetId = parseProjectId(arguments.get(0)); if (options.getParent() != null) { parentId = parseProjectId(options.getParent()); } } }
DatasetMovingHandler 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())); } datasetId = parseProjectId(arguments.get(0)); if (options.getParent() != null) { parentId = parseProjectId(options.getParent()); } }  }
DatasetMovingHandler 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())); } datasetId = parseProjectId(arguments.get(0)); if (options.getParent() != null) { parentId = parseProjectId(options.getParent()); } }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand(); }
DatasetMovingHandler 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())); } datasetId = parseProjectId(arguments.get(0)); if (options.getParent() != null) { parentId = parseProjectId(options.getParent()); } }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand();  }