diff --git a/src/test/kotlin/fr/postgresjson/ConnectionTest.kt b/src/test/kotlin/fr/postgresjson/ConnectionTest.kt index 4dd9a5d..887cba6 100644 --- a/src/test/kotlin/fr/postgresjson/ConnectionTest.kt +++ b/src/test/kotlin/fr/postgresjson/ConnectionTest.kt @@ -75,6 +75,12 @@ class ConnectionTest : TestAbstract() { assertNull(result) } + @Test + fun `test call request return nothing`() { + val result: ObjTest? = connection.selectOne("select * from test where false;", object : TypeReference() {}) + assertNull(result) + } + @Test fun callRequestWithArgsEntity() { val o = ObjTest("myName", id = UUID.fromString("2c0243ed-ff4d-4b9f-a52b-e38c71b0ed00"))