Skip to content

Commit 54fdde0

Browse files
committed
fix: fix now-forbidden warnings πŸ™ˆ
1 parent c5a550d commit 54fdde0

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

β€Žlegacy-connectors/src/test/kotlin/streams/kafka/connect/source/LegacyNeo4jSourceIT.ktβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class LegacyNeo4jSourceIT {
6565
mapOf("execId" to executionId))
6666
.consume()
6767

68+
@Suppress("DEPRECATION")
6869
TopicVerifier.create(consumer)
6970
.expectMessageValueMatching { value ->
7071
value.asMap().excludingKeys("timestamp") ==

β€Žsource-connector/src/test/kotlin/org/neo4j/connectors/kafka/source/Neo4jSourceIT.ktβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class Neo4jSourceIT {
6565
mapOf("execId" to executionId))
6666
.consume()
6767

68+
@Suppress("DEPRECATION")
6869
TopicVerifier.create(consumer)
6970
.expectMessageValueMatching { value ->
7071
value.asMap().excludingKeys("timestamp") ==

β€Žsource/src/main/kotlin/org/neo4j/connectors/kafka/source/Neo4jCdcKeyStrategy.ktβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ enum class Neo4jCdcKeyStrategy {
7777
val eventData = value.get("event")
7878
if (eventData !is Struct) {
7979
throw IllegalArgumentException(
80-
"expected event attribute to be a struct, but got: ${value?.javaClass}",
80+
"expected event attribute to be a struct, but got: ${value.javaClass}",
8181
)
8282
}
8383
return eventData

β€Žtesting/src/main/kotlin/org/neo4j/connectors/kafka/testing/assertions/TopicVerifier.ktβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class TopicVerifier<K, V>(private val consumer: KafkaConsumer<K, V>) {
3333
private var messagePredicates = mutableListOf<Predicate<ConsumerRecord<K, V>>>()
3434

3535
fun assertMessageValue(assertion: (V) -> Unit): TopicVerifier<K, V> {
36+
@Suppress("DEPRECATION")
3637
return expectMessageValueMatching { value ->
3738
try {
3839
assertion(value)

0 commit comments

Comments
Β (0)