From 7a0ef832110ba7233092c55aea9d19677ead067a Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Sat, 17 Jul 2021 16:32:49 +0200 Subject: [PATCH] test call request return nothing --- src/test/kotlin/fr/postgresjson/ConnectionTest.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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"))