Class NatsStreamingTestResourceLifecycleManager
java.lang.Object
io.debezium.server.nats.streaming.NatsStreamingTestResourceLifecycleManager
- All Implemented Interfaces:
io.quarkus.test.common.QuarkusTestResourceLifecycleManager
public class NatsStreamingTestResourceLifecycleManager
extends Object
implements io.quarkus.test.common.QuarkusTestResourceLifecycleManager
Manages the lifecycle of a NATS Streaming test resource.
- Author:
- Thiago Avancini
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
io.quarkus.test.common.QuarkusTestResourceLifecycleManager.Context, io.quarkus.test.common.QuarkusTestResourceLifecycleManager.TestInjector -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.testcontainers.containers.GenericContainer<?>static final Stringstatic final intprivate static final AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
init, inject, inject, order, setContext
-
Field Details
-
NATS_STREAMING_PORT
public static final int NATS_STREAMING_PORT- See Also:
-
NATS_STREAMING_IMAGE
- See Also:
-
running
-
container
private static final org.testcontainers.containers.GenericContainer<?> container
-
-
Constructor Details
-
NatsStreamingTestResourceLifecycleManager
public NatsStreamingTestResourceLifecycleManager()
-
-
Method Details
-
start
private static void start(boolean ignored) -
start
- Specified by:
startin interfaceio.quarkus.test.common.QuarkusTestResourceLifecycleManager
-
stop
public void stop()- Specified by:
stopin interfaceio.quarkus.test.common.QuarkusTestResourceLifecycleManager
-
getNatsStreamingContainerUrl
-