Class CommandResult<T>

java.lang.Object
org.junit.platform.console.options.CommandResult<T>

@API(status=INTERNAL, since="1.10") public class CommandResult<T> extends Object
Since:
1.10
  • Field Details

    • SUCCESS

      public static final int SUCCESS
      Exit code indicating successful execution
      See Also:
    • FAILURE

      protected static final int FAILURE
      Exit code indicating any failure(s)
      See Also:
  • Method Details

    • success

      public static <T> CommandResult<T> success()
    • failure

      public static <T> CommandResult<T> failure()
    • create

      public static <T> CommandResult<T> create(int exitCode, T value)
    • getExitCode

      public int getExitCode()
    • getValue

      public Optional<T> getValue()