@Test public void run() throws Exception { assertCommand(new String[] {}, CommandLineTools.COMMAND_NOT_FOUND_STATUS, "", "Available commands are:" + System.lineSeparator() + System.lineSeparator()); assertCommand(new String[] {"version"}, CommandLineTools.COMMAND_OK_STATUS, Version.getTableString(platformConfig) + System.lineSeparator(), ""); }
@Override public void run(CommandLine line, ToolRunningContext context) throws Exception { context.getOutputStream().println(Version.getTableString(platformConfig)); }
VersionTool implements Tool { @Override public void run(CommandLine line, ToolRunningContext context) throws Exception { context.getOutputStream().println(Version.getTableString(platformConfig)); } }
VersionTool implements Tool { @Override public void run(CommandLine line, ToolRunningContext context) throws Exception { context.getOutputStream().println(Version.getTableString(platformConfig)); } VersionTool();  VersionTool(PlatformConfig platformConfig); }
VersionTool implements Tool { @Override public void run(CommandLine line, ToolRunningContext context) throws Exception { context.getOutputStream().println(Version.getTableString(platformConfig)); } VersionTool();  VersionTool(PlatformConfig platformConfig); @Override Command getCommand(); @Override void run(CommandLine line, ToolRunningContext context); }
VersionTool implements Tool { @Override public void run(CommandLine line, ToolRunningContext context) throws Exception { context.getOutputStream().println(Version.getTableString(platformConfig)); } VersionTool();  VersionTool(PlatformConfig platformConfig); @Override Command getCommand(); @Override void run(CommandLine line, ToolRunningContext context);  }