Class NatsJetStreamIT

java.lang.Object
io.debezium.server.nats.jetstream.NatsJetStreamIT

@QuarkusTestResource(io.debezium.testing.testcontainers.PostgresTestResourceLifecycleManager.class) @QuarkusTestResource(NatsJetStreamTestResourceLifecycleManager.class) class NatsJetStreamIT extends Object
Integration test that verifies basic reading from PostgreSQL database and writing to NATS Jetstream subject.
Author:
Thiago Avancini
  • Field Details

    • MESSAGE_COUNT

      private static final int MESSAGE_COUNT
      See Also:
    • SUBJECT_NAME

      private static final String SUBJECT_NAME
      See Also:
    • nc

      protected static io.nats.client.Connection nc
    • js

      protected static io.nats.client.JetStream js
    • d

      protected static io.nats.client.Dispatcher d
    • messages

      private static final List<io.nats.client.Message> messages
  • Constructor Details

    • NatsJetStreamIT

      NatsJetStreamIT()
  • Method Details

    • setupDependencies

      void setupDependencies(@Observes io.debezium.server.events.ConnectorStartedEvent event)
    • connectorCompleted

      void connectorCompleted(@Observes io.debezium.server.events.ConnectorCompletedEvent event) throws Exception
      Throws:
      Exception
    • stop

      @AfterAll static void stop() throws Exception
      Throws:
      Exception
    • testNatsStreaming

      @Test void testNatsStreaming() throws Exception
      Throws:
      Exception