Package io.debezium.server.eventhubs
Class EventHubsIT
- java.lang.Object
-
- io.debezium.server.eventhubs.EventHubsIT
-
@QuarkusTestResource(io.debezium.testing.testcontainers.PostgresTestResourceLifecycleManager.class) public class EventHubsIT extends Object
Integration test that verifies basic reading from PostgreSQL database and writing to Azure Event Hubs.- Author:
- Abhishek Gupta
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.azure.messaging.eventhubs.EventHubConsumerClientconsumerprivate static StringCONSUMER_GROUPprivate static org.slf4j.LoggerLOGGERprivate static intMESSAGE_COUNTprotected static com.azure.messaging.eventhubs.EventHubProducerClientproducer(package private) DebeziumServerserver
-
Constructor Summary
Constructors Constructor Description EventHubsIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidconnectorCompleted(io.debezium.server.events.ConnectorCompletedEvent event)(package private) voidsetupDependencies(io.debezium.server.events.ConnectorStartedEvent event)(package private) static voidstop()voidtestEventHubs()
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
MESSAGE_COUNT
private static final int MESSAGE_COUNT
- See Also:
- Constant Field Values
-
CONSUMER_GROUP
private static final String CONSUMER_GROUP
- See Also:
- Constant Field Values
-
producer
protected static com.azure.messaging.eventhubs.EventHubProducerClient producer
-
consumer
protected static com.azure.messaging.eventhubs.EventHubConsumerClient consumer
-
server
@Inject DebeziumServer server
-
-
Method Detail
-
stop
@AfterAll static void stop()
-
setupDependencies
void setupDependencies(@Observes io.debezium.server.events.ConnectorStartedEvent event)
-
connectorCompleted
void connectorCompleted(@Observes io.debezium.server.events.ConnectorCompletedEvent event) throws Exception- Throws:
Exception
-
-