dlmarion commented on code in PR #6121:
URL: https://github.com/apache/accumulo/pull/6121#discussion_r2790642298
##########
shell/src/test/java/org/apache/accumulo/shell/ShellConfigTest.java:
##########
@@ -96,14 +95,15 @@ public String[] args(String... args) {
}
@Test
- public void testHelp() throws IOException {
- assertFalse(shell.config(args("--help")));
+ public void testHelp() throws Exception {
+ shell.execute(args("--help"));
assertTrue(output.get().startsWith("Usage"), "Did not print usage");
}
@Test
- public void testBadArg() throws IOException {
- assertFalse(shell.config(args("--bogus")));
+ public void testBadArg() throws Exception {
+ shell.execute(args("--bogus"));
+ assertTrue(shell.getExitCode() != 0);
Review Comment:
Changed in a1bcea8
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]