From 6e1185a38c248595678ad9460665ea65e09065a8 Mon Sep 17 00:00:00 2001 From: dankl Date: Sun, 20 Oct 2019 23:45:52 +0200 Subject: [PATCH] Fixed finding city --- .../src/main/kotlin/net/dankito/fints/banks/BankFinder.kt | 2 +- .../src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt index 72dbab39..a3eb91e2 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt @@ -25,7 +25,7 @@ open class BankFinder { return getBankList().filter { it.name.toLowerCase().contains(queryLowerCase) || it.bankCode.startsWith(query) - || it.city.contains(queryLowerCase) + || it.city.toLowerCase().contains(queryLowerCase) } } diff --git a/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt b/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt index 22e8b3df..56b49879 100644 --- a/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt +++ b/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt @@ -26,7 +26,7 @@ class BankFinderTest { val result = underTest.findBankByNameBankCodeOrCity("starnberg") // then - assertThat(result).hasSize(66) + assertThat(result).hasSize(71) } @Test