[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: fix tests
From: |
gnunet |
Subject: |
[libeufin] branch master updated: fix tests |
Date: |
Mon, 09 Mar 2020 15:27:09 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 6eac7d3 fix tests
6eac7d3 is described below
commit 6eac7d35c3c63ff3143c4c13a2b6ce75b6450ff4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Mar 9 15:27:02 2020 +0100
fix tests
---
nexus/src/test/kotlin/DbTest.kt | 4 ++--
nexus/src/test/kotlin/PainGeneration.kt | 16 +---------------
sandbox/src/test/kotlin/DbTest.kt | 3 ++-
3 files changed, 5 insertions(+), 18 deletions(-)
diff --git a/nexus/src/test/kotlin/DbTest.kt b/nexus/src/test/kotlin/DbTest.kt
index c442889..2723409 100644
--- a/nexus/src/test/kotlin/DbTest.kt
+++ b/nexus/src/test/kotlin/DbTest.kt
@@ -26,7 +26,7 @@ class DbTest {
@Test
fun makeCustomer() {
transaction {
- EbicsSubscriberEntity.new(id = "123asdf") {
+ EbicsSubscriberEntity.new(id = "123asdf-1") {
ebicsURL = "ebics url"
hostID = "host"
partnerID = "partner"
@@ -36,7 +36,7 @@ class DbTest {
authenticationPrivateKey =
SerialBlob("authenticationPrivateKey".toByteArray())
encryptionPrivateKey =
SerialBlob("encryptionPrivateKey".toByteArray())
}
- assert(EbicsSubscriberEntity.findById("123asdf") != null)
+ assert(EbicsSubscriberEntity.findById("123asdf-1") != null)
}
}
diff --git a/nexus/src/test/kotlin/PainGeneration.kt
b/nexus/src/test/kotlin/PainGeneration.kt
index 1296747..3143099 100644
--- a/nexus/src/test/kotlin/PainGeneration.kt
+++ b/nexus/src/test/kotlin/PainGeneration.kt
@@ -23,7 +23,7 @@ class PainTest {
SchemaUtils.create(EbicsAccountsInfoTable)
SchemaUtils.create(Pain001Table)
- val subscriberEntity = EbicsSubscriberEntity.new(id = "123asdf") {
+ val subscriberEntity = EbicsSubscriberEntity.new(id = "123asdf-0")
{
ebicsURL = "ebics url"
hostID = "host"
partnerID = "partner"
@@ -42,20 +42,6 @@ class PainTest {
}
}
- @Test
- fun testPain001helper() {
- val data = Pain001Data(
- creditorIban = "xy",
- creditorBic = "xy",
- creditorName = "xy",
- sum = Amount("1.01"),
- subject = "xy"
- )
- transaction {
- createPain001entry(data, "debtor-bankaccount-id")
- }
- }
-
@Test
fun testPain001document() {
transaction {
diff --git a/sandbox/src/test/kotlin/DbTest.kt
b/sandbox/src/test/kotlin/DbTest.kt
index 797ab98..a0ff853 100644
--- a/sandbox/src/test/kotlin/DbTest.kt
+++ b/sandbox/src/test/kotlin/DbTest.kt
@@ -17,6 +17,8 @@ import kotlin.math.abs
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertTrue
+import tech.libeufin.util.Amount
+import tech.libeufin.util.BadAmount
class DbTest {
@@ -35,7 +37,6 @@ class DbTest {
}
}
-
@Test
fun customers() {
transaction {
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: fix tests,
gnunet <=