Top Fields Constructors Methods
org.junit.platform.console.command

pack-priv abstract Class BaseCommand<T>

extends Object
implements Callable<T>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Known Direct Subclasses
org.junit.platform.console.command.DiscoverTestsCommand, org.junit.platform.console.command.ExecuteTestsCommand, org.junit.platform.console.command.ListTestEnginesCommand
Imports
java.io.PrintWriter, java.util.concurrent.Callable, org.junit.platform.commons.PreconditionViolationException, org.junit.platform.console.options.AnsiColorOptionMixin, picocli.CommandLine, .CommandLine.Mixin, .CommandLine.Model.CommandSpec, .CommandLine.Option, .CommandLine.ParameterException, .CommandLine.Spec

Field Summary

Modifier and TypeField and Description
pack-priv AnsiColorOptionMixin
pack-priv CommandLine.Model.CommandSpec
private boolean
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final T
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

private void
pack-priv void
execute(String... args)

protected abstract T
protected final CommandLine.Help.ColorScheme
private PrintWriter
pack-priv static CommandLine
initialize(CommandLine commandLine)

pack-priv void
parseArgs(String... args)

private CommandLine
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ansiColorOptionback to summary
pack-priv AnsiColorOptionMixin ansiColorOption
Annotations
@Mixin
commandSpecback to summary
pack-priv CommandLine.Model.CommandSpec commandSpec
Annotations
@Spec
disableBannerback to summary
private boolean disableBanner
Annotations
@Option
names:--disable-banner
description:Disable print out of the welcome message.
helpRequestedback to summary
private boolean helpRequested
Annotations
@SuppressWarnings:unused
@Option
names:-h, --help
usageHelp:true
description:Display help information.
versionRequestedback to summary
private boolean versionRequested
Annotations
@SuppressWarnings:unused
@Option
names:--version
versionHelp:true
description:Display version information.

Constructor Detail

BaseCommandback to summary
pack-priv BaseCommand()

Method Detail

callback to summary
public final T call()

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Annotations
@Override
displayBannerback to summary
private void displayBanner(PrintWriter out)
executeback to summary
pack-priv void execute(String... args)
executeback to summary
protected abstract T execute(PrintWriter out)
getColorSchemeback to summary
protected final CommandLine.Help.ColorScheme getColorScheme()
getOutback to summary
private PrintWriter getOut()
initializeback to summary
pack-priv static CommandLine initialize(CommandLine commandLine)
parseArgsback to summary
pack-priv void parseArgs(String... args)
toCommandLineback to summary
private CommandLine toCommandLine()