Class NatsJetStreamTestResourceLifecycleManager

java.lang.Object
io.debezium.server.nats.jetstream.NatsJetStreamTestResourceLifecycleManager
All Implemented Interfaces:
io.quarkus.test.common.QuarkusTestResourceLifecycleManager

public class NatsJetStreamTestResourceLifecycleManager 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

    Fields
    Modifier and Type
    Field
    Description
    private static final org.testcontainers.containers.GenericContainer<?>
     
    static final String
     
    static final int
     
    private static final AtomicBoolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
     
     
    private static void
    start(boolean ignored)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager

    init, inject, inject, order, setContext
  • Field Details

    • NATS_PORT

      public static final int NATS_PORT
      See Also:
    • NATS_IMAGE

      public static final String NATS_IMAGE
      See Also:
    • running

      private static final AtomicBoolean running
    • container

      private static final org.testcontainers.containers.GenericContainer<?> container
  • Constructor Details

    • NatsJetStreamTestResourceLifecycleManager

      public NatsJetStreamTestResourceLifecycleManager()
  • Method Details

    • start

      private static void start(boolean ignored)
    • start

      public Map<String,String> start()
      Specified by:
      start in interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
    • stop

      public void stop()
      Specified by:
      stop in interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
    • getNatsContainerUrl

      public static String getNatsContainerUrl()