bhouse99 commented on a change in pull request #1231:
URL: https://github.com/apache/cassandra/pull/1231#discussion_r727424328



##########
File path: test/unit/org/apache/cassandra/tools/StandaloneVerifierTest.java
##########
@@ -153,4 +153,13 @@ public void testVerboseArg()
             assertCorrectEnvPostTest();
         });
     }
+
+    @Test
+    public void testTooManyArgs()
+    {
+        ToolResult tool = ToolRunner.invokeClass(StandaloneVerifier.class, 
"another arg", "system_schema", "tables");
+        assertThat(tool.getStdout(), 
CoreMatchers.containsStringIgnoringCase("usage:"));
+        assertThat(tool.getCleanedStderr(), 
CoreMatchers.containsStringIgnoringCase("Too many arguments"));
+        assertEquals(1, tool.getExitCode());
+    }

Review comment:
       Replaced on all that could have it run




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to