Skip to content

Commit e6ef5ca

Browse files
committed
Polishing.
Update assertions after Kotlin upgrade. See #1217
1 parent 3514a03 commit e6ef5ca

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

spring-data-cassandra/src/test/kotlin/org/springframework/data/cassandra/core/cql/CqlOperationsExtensionsUnitTests.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ class CqlOperationsExtensionsUnitTests {
6363
fun `queryForObject(String, RowMapper, array) extension should call its Java counterpart`() {
6464

6565
operations.queryForObject("", 3) { rs: Row, _: Int -> rs.getInt(1) }
66-
verify { operations.queryForObject(eq(""), any<RowMapper<Int>>(), eq(3)) }
66+
verify {
67+
operations.queryForObject(
68+
eq(""),
69+
any<RowMapper<Int>>(),
70+
eq(arrayOf(3))
71+
)
72+
}
6773
}
6874

6975
@Test // DATACASS-484

spring-data-cassandra/src/test/kotlin/org/springframework/data/cassandra/core/cql/ReactiveCqlOperationsExtensionsUnitTests.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ class ReactiveCqlOperationsExtensionsUnitTests {
6363
fun `queryForObject(String, RowMapper, array) extension should call its Java counterpart`() {
6464

6565
operations.queryForObject("", 3) { rs: Row, _: Int -> rs.getInt(1) }
66-
verify { operations.queryForObject(eq(""), any<RowMapper<Int>>(), eq(3)) }
66+
verify {
67+
operations.queryForObject(
68+
eq(""),
69+
any<RowMapper<Int>>(),
70+
eq(arrayOf(3))
71+
)
72+
}
6773
}
6874

6975
@Test // DATACASS-484

0 commit comments

Comments
 (0)