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 2020/08/15 21:52:13 UTC
[accumulo] branch 1.10 updated: Fix JCommander warnings from #1684
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch 1.10
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/1.10 by this push:
new 64dc5db Fix JCommander warnings from #1684
64dc5db is described below
commit 64dc5db2b14509a4c8a2ca813cbab79f7247f819
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Sat Aug 15 16:56:00 2020 -0400
Fix JCommander warnings from #1684
---
.../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);
}
}