[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.
- [libeufin] branch master updated (9cd5454 -> 96b5026), gnunet, 2020/04/30
- [libeufin] 04/11: Integration test., gnunet, 2020/04/30
- [libeufin] 01/11: Sandbox admin., gnunet, 2020/04/30
- [libeufin] 03/11: fix db problem in test,
gnunet <=
- [libeufin] 02/11: HTD response content comes from DB now., gnunet, 2020/04/30
- [libeufin] 06/11: Integration test., gnunet, 2020/04/30
- [libeufin] 07/11: Fix CCT handling., gnunet, 2020/04/30
- [libeufin] 09/11: fix time parser, gnunet, 2020/04/30
- [libeufin] 11/11: Fix amount format., gnunet, 2020/04/30
- [libeufin] 05/11: Reducing code., gnunet, 2020/04/30
- [libeufin] 10/11: Move more generic helpers to util package., gnunet, 2020/04/30
- [libeufin] 08/11: Integration test., gnunet, 2020/04/30