Skip to content

Commit 602eac9

Browse files
authored
test: add integration tests for cdc sink strategies (#62)
1 parent b33483a commit 602eac9

File tree

25 files changed

+2597
-104
lines changed

25 files changed

+2597
-104
lines changed

legacy-connectors/src/test/kotlin/streams/kafka/connect/sink/LegacyNeo4jSinkIT.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import org.neo4j.connectors.kafka.testing.sink.TopicProducer
3434
import org.neo4j.driver.Session
3535

3636
abstract class LegacyNeo4jSinkIT {
37-
3837
companion object {
3938
const val TOPIC = "persons"
4039
}
@@ -46,7 +45,7 @@ abstract class LegacyNeo4jSinkIT {
4645
"MERGE (p:Person {name: event.name, surname: event.surname, executionId: event.executionId})"])
4746
@Test
4847
fun `writes messages to Neo4j via legacy sink connector`(
49-
@TopicProducer producer: ConvertingKafkaProducer,
48+
@TopicProducer(TOPIC) producer: ConvertingKafkaProducer,
5049
session: Session,
5150
testInfo: TestInfo
5251
) {
@@ -61,7 +60,7 @@ abstract class LegacyNeo4jSinkIT {
6160
val struct = Struct(schema)
6261
schema.fields().forEach { struct.put(it, value[it.name()]) }
6362

64-
producer.publish(TOPIC, struct, schema)
63+
producer.publish(value = struct, valueSchema = schema)
6564

6665
await().atMost(30.seconds.toJavaDuration()).until {
6766
session

0 commit comments

Comments
 (0)