From 2c1c690302463324596bc3dde852844a32b948c2 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 7 Sep 2020 19:57:51 +0200 Subject: [PATCH] Extracted settings to top of class --- .../dankito/banking/fints/FinTsClientTestBase.kt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/FinTsClientTestBase.kt b/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/FinTsClientTestBase.kt index c6cece68..2bb80ee3 100644 --- a/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/FinTsClientTestBase.kt +++ b/fints4k/src/jvm6Test/kotlin/net/dankito/banking/fints/FinTsClientTestBase.kt @@ -31,10 +31,19 @@ import kotlin.test.Ignore import kotlin.test.Test -//@Ignore // not an automatic test, supply your settings below +@Ignore // not an automatic test, supply your settings below open class FinTsClientTestBase { companion object { + + // TODO: add your settings here: + val BankCode = "" + + val CustomerId = "" + + val Password = "" + + val DateTimeFormatForUniqueBankTransferUsage = DateFormatter("yyyy-MM-dd'T'HH:mm:ss.SSS") } @@ -70,10 +79,9 @@ open class FinTsClientTestBase { private val BankDataAnonymous = BankData("10070000","https://fints.deutsche-bank.de/", "DEUTDEBBXXX") - // TODO: add your settings here: - private val bankInfo = InMemoryBankFinder().findBankByBankCode("").first() + private val bankInfo = InMemoryBankFinder().findBankByBankCode(BankCode).first() private val Bank = BankData(bankInfo.bankCode, bankInfo.pinTanAddress ?: "", bankInfo.bic, bankInfo.name) - private val Customer = CustomerData("", "") + private val Customer = CustomerData(CustomerId, Password)