libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 17ab6d7a67f3b7e7c3ff97ac78cf3448bb7c20cc
parent 2f7ef86f14392725ecaca4751a87800e568f64bb
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri,  6 Dec 2019 23:07:22 +0100

no need for AmountUtil, for now

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 4++--
Msandbox/src/test/kotlin/DbTest.kt | 1-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt @@ -39,6 +39,8 @@ const val EBICS_PARTNER_ID_MAX_LENGTH = 10 const val EBICS_SYSTEM_ID_MAX_LENGTH = 10 const val MAX_ID_LENGTH = 21 // enough to contain IBANs const val MAX_SUBJECT_LENGTH = 140 // okay? +const val NUMBER_MAX_DIGITS = 20 +const val SCALE_TWO = 2 /** * All the states to give a subscriber. @@ -181,8 +183,6 @@ class BankTransactionEntity(id: EntityID<Int>) : IntEntity(id) { } - - /** * This table information *not* related to EBICS, for all * its customers. diff --git a/sandbox/src/test/kotlin/DbTest.kt b/sandbox/src/test/kotlin/DbTest.kt @@ -73,7 +73,6 @@ class DbTest { @Test fun badAmount() { - assertFailsWith<BadAmount> { transaction { BankTransactionEntity.new {