@Test(expected = IllegalArgumentException.class) public void testWrongArguments() { DatasetListHandler handler = getDatasetListHandler(); handler.parseAndVerifyArguments(Collections.singletonList(DATASET_NAME_1), new ApplicationOptions()); }
@Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (!arguments.isEmpty()) { throw new IllegalArgumentException(MessageConstants.getMessage( ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 0, arguments.size())); } this.printTable = options.isPrintTable(); if (options.getParent() != null) { this.parentId = parseProjectId(options.getParent()); } permissionsRequired = options.isShowPermissions(); }
DatasetListHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (!arguments.isEmpty()) { throw new IllegalArgumentException(MessageConstants.getMessage( ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 0, arguments.size())); } this.printTable = options.isPrintTable(); if (options.getParent() != null) { this.parentId = parseProjectId(options.getParent()); } permissionsRequired = options.isShowPermissions(); } }
DatasetListHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (!arguments.isEmpty()) { throw new IllegalArgumentException(MessageConstants.getMessage( ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 0, arguments.size())); } this.printTable = options.isPrintTable(); if (options.getParent() != null) { this.parentId = parseProjectId(options.getParent()); } permissionsRequired = options.isShowPermissions(); }  }
DatasetListHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (!arguments.isEmpty()) { throw new IllegalArgumentException(MessageConstants.getMessage( ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 0, arguments.size())); } this.printTable = options.isPrintTable(); if (options.getParent() != null) { this.parentId = parseProjectId(options.getParent()); } permissionsRequired = options.isShowPermissions(); }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand(); }
DatasetListHandler extends AbstractHTTPCommandHandler { @Override public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) { if (!arguments.isEmpty()) { throw new IllegalArgumentException(MessageConstants.getMessage( ILLEGAL_COMMAND_ARGUMENTS, getCommand(), 0, arguments.size())); } this.printTable = options.isPrintTable(); if (options.getParent() != null) { this.parentId = parseProjectId(options.getParent()); } permissionsRequired = options.isShowPermissions(); }  @Override void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options); @Override int runCommand();  }