You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2017/10/19 22:01:57 UTC
[accumulo] branch master updated: ACCUMULO-4703 Fix warnings for
newer JCommander
This is an automated email from the ASF dual-hosted git repository.
ctubbsii 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 98bc318 ACCUMULO-4703 Fix warnings for newer JCommander
98bc318 is described below
commit 98bc31819e6c654a63540709bd83d3b887fb2a3f
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Thu Oct 19 17:44:27 2017 -0400
ACCUMULO-4703 Fix warnings for newer JCommander
Remove use of deprecated JCommander constructors, which are new warnings
after the previous ACCUMULO-4703 commits updating the JCommander
version.
---
.../java/org/apache/accumulo/shell/PasswordConverterTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java b/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java
index 75d7293..1db0f02 100644
--- a/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java
+++ b/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java
@@ -76,7 +76,7 @@ public class PasswordConverterTest {
public void testPass() {
String expected = String.valueOf(Math.random());
argv[1] = "pass:" + expected;
- new JCommander(password, argv);
+ new JCommander(password).parse(argv);
assertEquals(expected, password.password);
}
@@ -84,7 +84,7 @@ public class PasswordConverterTest {
public void testEnv() {
String name = System.getenv().keySet().iterator().next();
argv[1] = "env:" + name;
- new JCommander(password, argv);
+ new JCommander(password).parse(argv);
assertEquals(System.getenv(name), password.password);
}
@@ -94,20 +94,20 @@ public class PasswordConverterTest {
Scanner scan = new Scanner(new File("pom.xml"));
String expected = scan.nextLine();
scan.close();
- new JCommander(password, argv);
+ new JCommander(password).parse(argv);
assertEquals(expected, password.password);
}
@Test(expected = ParameterException.class)
public void testNoFile() throws FileNotFoundException {
argv[1] = "file:doesnotexist";
- new JCommander(password, argv);
+ new JCommander(password).parse(argv);
}
@Test
public void testStdin() {
argv[1] = "stdin";
- new JCommander(password, argv);
+ new JCommander(password).parse(argv);
assertEquals("stdin", password.password);
}
}
--
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" <co...@accumulo.apache.org>'].