libeufin

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

commit 43e7d5558e36baac7c74dffce893360d41bf4410
parent 157f800948e697d796fd4c79cdb4b53a62857750
Author: MS <ms@taler.net>
Date:   Mon, 25 May 2020 18:05:47 +0200

migrating to java.time

Diffstat:
Dnexus/src/test/kotlin/DateTest.kt | 17-----------------
Msandbox/src/test/kotlin/DBTest.kt | 5++---
2 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/nexus/src/test/kotlin/DateTest.kt b/nexus/src/test/kotlin/DateTest.kt @@ -1,16 +0,0 @@ -package tech.libeufin.nexus - -import org.joda.time.DateTime -import org.junit.Test -import tech.libeufin.util.toDashedDate -import tech.libeufin.util.parseDashedDate - -class DateTest { - @Test - fun dashedDateParsing() { - val parseddate = parseDashedDate("2020-04-30") - println("Parsed value: " + parseddate.toLocalDate()) - println("To dashed value: " + parseddate.toDashedDate()) - println("System now(): " + DateTime.now().toLocalDate()) - } -} -\ No newline at end of file diff --git a/sandbox/src/test/kotlin/DBTest.kt b/sandbox/src/test/kotlin/DBTest.kt @@ -4,13 +4,12 @@ import org.jetbrains.exposed.sql.StdOutSqlLogger import org.jetbrains.exposed.sql.addLogger import org.jetbrains.exposed.sql.transactions.TransactionManager import org.jetbrains.exposed.sql.transactions.transaction -import org.joda.time.DateTime import org.junit.Test import tech.libeufin.sandbox.PaymentEntity import tech.libeufin.sandbox.PaymentsTable import tech.libeufin.util.parseDashedDate import java.sql.Connection - +import java.time.Instant class DBTest { @Test @@ -29,7 +28,7 @@ class DBTest { debitorIban = "spends" subject = "deal" amount = "EUR:1" - date = DateTime.now().millis + date = Instant.now().toEpochMilli() } } val result = transaction {