gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 03/11: fix db problem in test


From: gnunet
Subject: [libeufin] 03/11: fix db problem in test
Date: Thu, 30 Apr 2020 21:46:46 +0200

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

marcello pushed a commit to branch master
in repository libeufin.

commit bcc5d2fda5ffe866193fdc33b22489817e03bcbe
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Apr 30 15:42:25 2020 +0200

    fix db problem in test
---
 nexus/src/test/kotlin/PainGeneration.kt | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/nexus/src/test/kotlin/PainGeneration.kt 
b/nexus/src/test/kotlin/PainGeneration.kt
index 0a6e3e1..4eef6d8 100644
--- a/nexus/src/test/kotlin/PainGeneration.kt
+++ b/nexus/src/test/kotlin/PainGeneration.kt
@@ -8,8 +8,6 @@ import org.jetbrains.exposed.sql.SchemaUtils
 import org.joda.time.DateTime
 import tech.libeufin.util.Amount
 
-
-
 class PainTest {
     @Before
     fun prepare() {
@@ -23,14 +21,7 @@ class PainTest {
                 iban = "DEBIT IBAN"
                 bankCode = "DEBIT BIC"
             }
-        }
-    }
-
-    @Test
-    fun testPain001document() {
-        transaction {
-            val nu = NexusUserEntity.new(id = "mock") { }
-            val pain001Entity = Pain001Entity.new {
+            Pain001Entity.new {
                 sum = Amount(1)
                 debitorIban = "DEBIT IBAN"
                 debitorBic = "DEBIT BIC"
@@ -43,9 +34,15 @@ class PainTest {
                 msgId = 1
                 endToEndId = 1
                 date = DateTime.now().millis
-                nexusUser = nu
+                nexusUser = NexusUserEntity.new(id = "mock") { }
             }
-            val s = createPain001document(pain001Entity)
+        }
+    }
+
+    @Test
+    fun testPain001document() {
+        transaction {
+            val s = createPain001document(Pain001Entity.all().first())
             println(s)
         }
     }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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