Interface LaunchResult


public interface LaunchResult
Contains information about a run (via Launch or QuarkusMainLauncher) of a command line application. The class is meant to be used as a test method parameter giving the test the ability to assert various aspects of the run.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Echo the command line application standard output to the console.
    int
    Get the exit code of the application.
    default String
    Get the command line application error output as a single string.
    Get the command line application error output as a list of strings.
    default String
    Get the command line application standard output as a single string.
    Get the command line application standard output as a list of strings.
  • Method Details

    • getOutput

      default String getOutput()
      Get the command line application standard output as a single string.
    • getErrorOutput

      default String getErrorOutput()
      Get the command line application error output as a single string.
    • echoSystemOut

      default void echoSystemOut()
      Echo the command line application standard output to the console.
    • getOutputStream

      List<String> getOutputStream()
      Get the command line application standard output as a list of strings. Each line of output correspond to a string in the list.
    • getErrorStream

      List<String> getErrorStream()
      Get the command line application error output as a list of strings. Each line of output correspond to a string in the list.
    • exitCode

      int exitCode()
      Get the exit code of the application.