Fixed parseBankParameters_MaxMessageSizeIsAnEmptyString()

This commit is contained in:
dankito 2020-05-12 12:40:05 +02:00
parent b7ed5aa015
commit 5003a5bffe
1 changed files with 8 additions and 8 deletions

View File

@ -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<BankParameters>(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}") }
}