Package org.consensusj.jsonrpc.cli.test
Interface CLITestSupport
public interface CLITestSupport
Support functions for testing command-line tools
-
Method Summary
Modifier and TypeMethodDescriptiondefault String[]
parseCommandLine
(String line) default CLICommandResult
runTool
(BaseJsonRpcTool tool, String... args) Run a command and capture status and output
-
Method Details
-
parseCommandLine
-
runTool
default CLICommandResult runTool(BaseJsonRpcTool tool, String... args) throws UnsupportedEncodingException Run a command and capture status and output- Parameters:
tool
- Command object instance to run- Returns:
- Object containing status, stdout, stderr
- Throws:
UnsupportedEncodingException
-