Search in sources :

Example 1 with MockKafkaConnect

use of org.apache.hudi.helper.MockKafkaConnect in project hudi by apache.

the class TestConnectTransactionParticipant method setUp.

@BeforeEach
public void setUp() throws Exception {
    partition = new TopicPartition(TOPIC_NAME, PARTITION_NUMBER);
    kafkaControlAgent = new MockKafkaControlAgent();
    mockKafkaConnect = new MockKafkaConnect(partition);
    mockCoordinator = new MockCoordinator(kafkaControlAgent);
    mockCoordinator.start();
    configs = KafkaConnectConfigs.newBuilder().build();
    initializeParticipant();
}
Also used : MockKafkaConnect(org.apache.hudi.helper.MockKafkaConnect) TopicPartition(org.apache.kafka.common.TopicPartition) MockKafkaControlAgent(org.apache.hudi.helper.MockKafkaControlAgent) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MockKafkaConnect (org.apache.hudi.helper.MockKafkaConnect)1 MockKafkaControlAgent (org.apache.hudi.helper.MockKafkaControlAgent)1 TopicPartition (org.apache.kafka.common.TopicPartition)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1