Package io.quarkus.test.junit.main
Interface LaunchResult
-
public interface LaunchResult
Contains information about a run (viaLaunch
orQuarkusMainLauncher
) 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
echoSystemOut()
Echo the command line application standard output to the console.int
exitCode()
Get the exit code of the application.default String
getErrorOutput()
Get the command line application error output as a single string.List<String>
getErrorStream()
Get the command line application error output as a list of strings.default String
getOutput()
Get the command line application standard output as a single string.List<String>
getOutputStream()
Get the command line application standard output as a list of strings.
-
-
-
Method Detail
-
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.
-
-