Class MainCommand
java.lang.Object
org.junit.platform.console.options.MainCommand
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) CommandResult
<?> (package private) picocli.CommandLine.Model.CommandSpec
private final ConsoleTestExecutor.Factory
private boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()
int
private static picocli.CommandLine
getLikelyExecutedCommand
(picocli.CommandLine commandLine) Get the most likely executed subcommand, if any, or the main command otherwise.private static void
printDeprecationWarning
(String subcommand, Optional<String> triggeringOption, picocli.CommandLine commandLine) (package private) CommandResult
<?> run
(PrintWriter out, PrintWriter err, String[] args) private static CommandResult
<?> runCommand
(PrintWriter out, PrintWriter err, String[] args, Object command) private static CommandResult
<Object> runCommand
(PrintWriter out, PrintWriter err, String[] args, picocli.CommandLine commandLine) private Object
runCommand
(String subcommand, Optional<String> triggeringOption)
-
Field Details
-
consoleTestExecutorFactory
-
helpRequested
private boolean helpRequested -
helpRequested2
private boolean helpRequested2 -
allParameters
-
commandSpec
picocli.CommandLine.Model.CommandSpec commandSpec -
commandResult
CommandResult<?> commandResult
-
-
Constructor Details
-
MainCommand
MainCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)
-
-
Method Details
-
call
-
getExitCode
public int getExitCode()- Specified by:
getExitCode
in interfacepicocli.CommandLine.IExitCodeGenerator
-
runCommand
-
printDeprecationWarning
-
run
-
runCommand
private static CommandResult<?> runCommand(PrintWriter out, PrintWriter err, String[] args, Object command) -
runCommand
private static CommandResult<Object> runCommand(PrintWriter out, PrintWriter err, String[] args, picocli.CommandLine commandLine) -
getLikelyExecutedCommand
private static picocli.CommandLine getLikelyExecutedCommand(picocli.CommandLine commandLine) Get the most likely executed subcommand, if any, or the main command otherwise.- See Also:
-