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.host
property based on the valuequarkus.http.test-host
in 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 void
close()
void
includeAsSysProps(Map systemProps)
void
init(ArtifactLauncher.InitContext initContext)
boolean
listensOnSsl()
ArtifactLauncher.LaunchResult
runToCompletion(String[] args)
void
start()
-
-
-
Method Detail
-
start
public void start() throws IOException
- Specified by:
start
in interfaceArtifactLauncher
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
listensOnSsl
public boolean listensOnSsl()
- Specified by:
listensOnSsl
in interfaceArtifactLauncher
-
includeAsSysProps
public void includeAsSysProps(Map systemProps)
- Specified by:
includeAsSysProps
in interfaceArtifactLauncher
-
init
public void init(ArtifactLauncher.InitContext initContext)
- Specified by:
init
in interfaceArtifactLauncher
-
runToCompletion
public ArtifactLauncher.LaunchResult runToCompletion(String[] args)
- Specified by:
runToCompletion
in interfaceArtifactLauncher
-
-