libeufin

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

commit 30fc568271b1bb8e316ac691e94c874951bc92d3
parent 8f118987a6fe292e1fd5a7d16fe0baf63a5f3240
Author: MS <ms@taler.net>
Date:   Thu, 14 May 2020 17:51:19 +0200

Remove not so useful test.

Diffstat:
Dnexus/src/test/kotlin/PainGeneration.kt | 48------------------------------------------------
1 file changed, 0 insertions(+), 48 deletions(-)

diff --git a/nexus/src/test/kotlin/PainGeneration.kt b/nexus/src/test/kotlin/PainGeneration.kt @@ -1,47 +0,0 @@ -package tech.libeufin.nexus - -import org.junit.Before -import org.junit.Test -import org.jetbrains.exposed.sql.Database -import org.jetbrains.exposed.sql.transactions.transaction -import org.jetbrains.exposed.sql.SchemaUtils -import org.joda.time.DateTime -import tech.libeufin.util.Amount - -class PainTest { - @Before - fun prepare() { - Database.connect("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1", driver = "org.h2.Driver") - transaction { - SchemaUtils.create(BankAccountsTable) - SchemaUtils.create(PreparedPaymentsTable) - SchemaUtils.create(NexusUsersTable) - BankAccountEntity.new(id = "acctid") { - accountHolder = "Account Holder" - iban = "DEBIT IBAN" - bankCode = "DEBIT BIC" - } - PreparedPaymentEntity.new { - sum = Amount(1) - debitorIban = "DEBIT IBAN" - debitorBic = "DEBIT BIC" - debitorName = "DEBIT NAME" - subject = "subject line" - creditorIban = "CREDIT IBAN" - creditorBic = "CREDIT BIC" - creditorName = "CREDIT NAME" - paymentId = 1 - endToEndId = 1 - nexusUser = NexusUserEntity.new(id = "mock") { } - } - } - } - - @Test - fun testPain001document() { - transaction { - val s = createPain001document(PreparedPaymentEntity.all().first()) - println(s) - } - } -} -\ No newline at end of file