Fixed that for accounts that only have appTAN, pushTAN, smsTAN, ... as TAN procedures test getTanMediaList() would fail

This commit is contained in:
dankito 2020-05-13 23:27:52 +02:00
parent 7226b0965d
commit cd77da6da3
1 changed files with 10 additions and 0 deletions

View File

@ -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()