Polishing.

Update assertions after Kotlin upgrade.

See #1217
This commit is contained in:
Mark Paluch
2022-02-11 11:01:41 +01:00
parent 3514a03db0
commit e6ef5caf58
2 changed files with 14 additions and 2 deletions

View File

@@ -63,7 +63,13 @@ class CqlOperationsExtensionsUnitTests {
fun `queryForObject(String, RowMapper, array) extension should call its Java counterpart`() {
operations.queryForObject("", 3) { rs: Row, _: Int -> rs.getInt(1) }
verify { operations.queryForObject(eq(""), any<RowMapper<Int>>(), eq(3)) }
verify {
operations.queryForObject(
eq(""),
any<RowMapper<Int>>(),
eq(arrayOf(3))
)
}
}
@Test // DATACASS-484

View File

@@ -63,7 +63,13 @@ class ReactiveCqlOperationsExtensionsUnitTests {
fun `queryForObject(String, RowMapper, array) extension should call its Java counterpart`() {
operations.queryForObject("", 3) { rs: Row, _: Int -> rs.getInt(1) }
verify { operations.queryForObject(eq(""), any<RowMapper<Int>>(), eq(3)) }
verify {
operations.queryForObject(
eq(""),
any<RowMapper<Int>>(),
eq(arrayOf(3))
)
}
}
@Test // DATACASS-484