Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B1066200CFC for ; Thu, 28 Sep 2017 23:01:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AF5271609CD; Thu, 28 Sep 2017 21:01:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0207E1609B4 for ; Thu, 28 Sep 2017 23:01:32 +0200 (CEST) Received: (qmail 68545 invoked by uid 500); 28 Sep 2017 21:01:32 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 68533 invoked by uid 99); 28 Sep 2017 21:01:32 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2017 21:01:32 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 9A705819BD; Thu, 28 Sep 2017 21:01:30 +0000 (UTC) Date: Thu, 28 Sep 2017 21:01:30 +0000 To: "commits@accumulo.apache.org" Subject: [accumulo] branch master updated: ACCUMULO-4703 Upgrade JCommander to 1.72 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150663249056.20930.336258190524291743@gitbox.apache.org> From: mmiller@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: accumulo X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 4731ac80af1589bc0e3209f73d85e69ced8e254f X-Git-Newrev: 44a1f4d07bd4a8eb12a265b9de540311e485ee35 X-Git-Rev: 44a1f4d07bd4a8eb12a265b9de540311e485ee35 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Thu, 28 Sep 2017 21:01:33 -0000 This is an automated email from the ASF dual-hosted git repository. mmiller pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/accumulo.git The following commit(s) were added to refs/heads/master by this push: new 44a1f4d ACCUMULO-4703 Upgrade JCommander to 1.72 44a1f4d is described below commit 44a1f4d07bd4a8eb12a265b9de540311e485ee35 Author: Mike Miller AuthorDate: Thu Sep 28 16:42:13 2017 -0400 ACCUMULO-4703 Upgrade JCommander to 1.72 --- pom.xml | 2 +- shell/src/test/java/org/apache/accumulo/shell/ShellConfigTest.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8714c2f..dc34665 100644 --- a/pom.xml +++ b/pom.xml @@ -161,7 +161,7 @@ com.beust jcommander - 1.60 + 1.72 com.fasterxml.jackson.core diff --git a/shell/src/test/java/org/apache/accumulo/shell/ShellConfigTest.java b/shell/src/test/java/org/apache/accumulo/shell/ShellConfigTest.java index d948768..ee3935c 100644 --- a/shell/src/test/java/org/apache/accumulo/shell/ShellConfigTest.java +++ b/shell/src/test/java/org/apache/accumulo/shell/ShellConfigTest.java @@ -94,7 +94,9 @@ public class ShellConfigTest { @Test public void testBadArg() throws IOException { assertFalse(shell.config(args("--bogus"))); - assertTrue("Did not print usage", output.get().startsWith("Usage")); + // JCommander versions after 1.60 will cause the Shell to detect the arg as Unrecognized option + assertTrue("Did not print Error", output.get().startsWith("ERROR")); + assertTrue("Did not print usage", output.get().contains("Usage")); } @Test -- To stop receiving notification emails like this one, please contact ['"commits@accumulo.apache.org" '].