gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: more jackson testing


From: gnunet
Subject: [libeufin] branch master updated: more jackson testing
Date: Tue, 27 Oct 2020 15:25:52 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new e860dc8  more jackson testing
e860dc8 is described below

commit e860dc89dd9f712e928573926cfd62b8769d08d1
Author: MS <ms@taler.net>
AuthorDate: Tue Oct 27 15:25:45 2020 +0100

    more jackson testing
---
 nexus/src/test/kotlin/JsonTest.kt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/nexus/src/test/kotlin/JsonTest.kt 
b/nexus/src/test/kotlin/JsonTest.kt
index 9d421e8..03c6e36 100644
--- a/nexus/src/test/kotlin/JsonTest.kt
+++ b/nexus/src/test/kotlin/JsonTest.kt
@@ -3,6 +3,7 @@ import org.junit.Test
 import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
 import com.fasterxml.jackson.module.kotlin.readValue
 import tech.libeufin.nexus.server.CreateBankConnectionFromBackupRequestJson
+import tech.libeufin.nexus.server.CreateBankConnectionFromNewRequestJson
 
 
 class JsonTest {
@@ -15,7 +16,11 @@ class JsonTest {
         )
         val roundTrip = 
mapper.readValue<CreateBankConnectionFromBackupRequestJson>(mapper.writeValueAsString(backupObj))
         assert(roundTrip.data.toString() == "{}" && roundTrip.passphrase == 
"secret" && roundTrip.name == "backup")
-
+        val newConnectionObj = CreateBankConnectionFromNewRequestJson(
+            name = "new-connection", type = "ebics", data = 
mapper.readTree("{}")
+        )
+        val roundTripNew = 
mapper.readValue<CreateBankConnectionFromNewRequestJson>(mapper.writeValueAsString(newConnectionObj))
+        assert(roundTripNew.data.toString() == "{}" && roundTripNew.type == 
"ebics" && roundTripNew.name == "new-connection")
     }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]