From cd77da6da360f094947b11e40378dc971b5d8256 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 13 May 2020 23:27:52 +0200 Subject: [PATCH] Fixed that for accounts that only have appTAN, pushTAN, smsTAN, ... as TAN procedures test getTanMediaList() would fail --- .../test/kotlin/net/dankito/fints/FinTsClientTest.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt b/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt index e956fe26..f9530515 100644 --- a/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt +++ b/fints4k/src/test/kotlin/net/dankito/fints/FinTsClientTest.kt @@ -157,6 +157,16 @@ class FinTsClientTest { @Test fun getTanMediaList() { + // this test is only senseful for accounts using chipTAN / TAN generator as TAN procedure + + underTest.getAnonymousBankInfo(Bank) + + val supportsRetrievingTanMedia = Bank.supportedJobs.firstOrNull { it.jobName == "HKTAB" } != null + + if (supportsRetrievingTanMedia == false) { // accounts with appTAN, pushTAN, smsTAN, ... would fail here -> simply return + return + } + assertThat(Customer.tanMedia).isEmpty()