Fixed that for accounts that only have appTAN, pushTAN, smsTAN, ... as TAN procedures test getTanMediaList() would fail
This commit is contained in:
parent
7226b0965d
commit
cd77da6da3
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue