Package io.quarkus.test.common
Class TestHostLauncher
- java.lang.Object
-
- io.quarkus.test.common.TestHostLauncher
-
- All Implemented Interfaces:
ArtifactLauncher,Closeable,AutoCloseable
public class TestHostLauncher extends Object implements ArtifactLauncher
A launcher that simply sets thequarkus.http.hostproperty based on the valuequarkus.http.test-hostin order to support the case of running integration tests against an already running application using RestAssured without any chances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.test.common.ArtifactLauncher
ArtifactLauncher.InitContext, ArtifactLauncher.LaunchResult
-
-
Constructor Summary
Constructors Constructor Description TestHostLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidincludeAsSysProps(Map systemProps)voidinit(ArtifactLauncher.InitContext initContext)booleanlistensOnSsl()ArtifactLauncher.LaunchResultrunToCompletion(String[] args)voidstart()
-
-
-
Method Detail
-
start
public void start() throws IOException- Specified by:
startin interfaceArtifactLauncher- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
listensOnSsl
public boolean listensOnSsl()
- Specified by:
listensOnSslin interfaceArtifactLauncher
-
includeAsSysProps
public void includeAsSysProps(Map systemProps)
- Specified by:
includeAsSysPropsin interfaceArtifactLauncher
-
init
public void init(ArtifactLauncher.InitContext initContext)
- Specified by:
initin interfaceArtifactLauncher
-
runToCompletion
public ArtifactLauncher.LaunchResult runToCompletion(String[] args)
- Specified by:
runToCompletionin interfaceArtifactLauncher
-
-