From 5003a5bffe85bf68c059c96a00502c71a47890c8 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 12 May 2020 12:40:05 +0200 Subject: [PATCH] Fixed parseBankParameters_MaxMessageSizeIsAnEmptyString() --- .../dankito/fints/response/ResponseParserTest.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fints4k/src/test/kotlin/net/dankito/fints/response/ResponseParserTest.kt b/fints4k/src/test/kotlin/net/dankito/fints/response/ResponseParserTest.kt index 51c89709..b397abd9 100644 --- a/fints4k/src/test/kotlin/net/dankito/fints/response/ResponseParserTest.kt +++ b/fints4k/src/test/kotlin/net/dankito/fints/response/ResponseParserTest.kt @@ -320,21 +320,21 @@ class ResponseParserTest : FinTsTestBase() { val result = underTest.parse("HIBPA:3:3:3+0+280:70033100+Baader Bank AG+1+1+300++0+300'") // then - assertSuccessfullyParsedSegment(result, InstituteSegmentId.BankParameters, 5, 3, 3) + assertSuccessfullyParsedSegment(result, InstituteSegmentId.BankParameters, 3, 3, 3) result.getFirstSegmentById(InstituteSegmentId.BankParameters)?.let { segment -> - assertThat(segment.bpdVersion).isEqualTo(34) + assertThat(segment.bpdVersion).isEqualTo(0) assertThat(segment.bankCountryCode).isEqualTo(280) - assertThat(segment.bankCode).isEqualTo("10070000") - assertThat(segment.bankName).isEqualTo("Deutsche Bank") + assertThat(segment.bankCode).isEqualTo("70033100") + assertThat(segment.bankName).isEqualTo("Baader Bank AG") - assertThat(segment.countMaxJobsPerMessage).isEqualTo(0) + assertThat(segment.countMaxJobsPerMessage).isEqualTo(1) assertThat(segment.supportedLanguages).containsExactly(Dialogsprache.German) assertThat(segment.supportedHbciVersions).containsExactly(HbciVersion.FinTs_3_0_0) - assertThat(segment.maxMessageSize).isEqualTo(0) - assertThat(segment.minTimeout).isNull() - assertThat(segment.maxTimeout).isNull() + assertThat(segment.maxMessageSize).isNull() + assertThat(segment.minTimeout).isEqualTo(0) + assertThat(segment.maxTimeout).isEqualTo(300) } ?: run { Assert.fail("No segment of type BankParameters found in ${result.receivedSegments}") } }