Package io.quarkus.test.junit.main
Interface LaunchResult
-
public interface LaunchResultContains information about a run (viaLaunchorQuarkusMainLauncher) 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 voidechoSystemOut()Echo the command line application standard output to the console.intexitCode()Get the exit code of the application.default StringgetErrorOutput()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 StringgetOutput()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.
-
-