Fixed that now '2:13' instead of '16:14' is used

This commit is contained in:
dankito 2020-12-12 00:23:30 +01:00
parent 9ef1458edb
commit 095d9c467a
2 changed files with 9 additions and 9 deletions

View File

@ -87,8 +87,8 @@ class MessageBuilderTest : FinTsTestBase() {
// then
expect(normalizeBinaryData(result)).toBe(normalizeBinaryData(
"HNHBK:1:3+000000000398+300+0+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:16:14:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNHBK:1:3+000000000397+300+0+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:2:13:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNVSD:999:1+@234@" + "HNSHK:2:4+PIN:2+${SecurityFunction.code}+$ControlReference+1+1+1::0+1+1:$Date:$Time+1:999:1+6:10:16+280:$BankCode:$CustomerId:S:0:0'" +
"HKIDN:3:2+280:$BankCode+$CustomerId+0+0'" +
"HKVVB:4:3+0+0+${Language.code}+$ProductName+$ProductVersion'" +
@ -111,8 +111,8 @@ class MessageBuilderTest : FinTsTestBase() {
// then
expect(normalizeBinaryData(result)).toBe(normalizeBinaryData(
"HNHBK:1:3+000000000329+300+$dialogId+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:16:14:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNHBK:1:3+000000000328+300+$dialogId+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:2:13:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNVSD:999:1+@165@" + "HNSHK:2:4+PIN:2+${SecurityFunction.code}+$ControlReference+1+1+1::0+1+1:$Date:$Time+1:999:1+6:10:16+280:$BankCode:$CustomerId:S:0:0'" +
"HKEND:3:1+$dialogId'" +
"HNSHA:4:2+$ControlReference++$Pin''" +
@ -174,8 +174,8 @@ class MessageBuilderTest : FinTsTestBase() {
expect(result.createdMessage).notToBeNull()
expect(normalizeBinaryData(result.createdMessage!!)).toBe(normalizeBinaryData(
"HNHBK:1:3+000000000362+300+0+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:16:14:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNHBK:1:3+000000000361+300+0+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:2:13:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNVSD:999:1+@198@" + "HNSHK:2:4+PIN:2+${SecurityFunction.code}+$ControlReference+1+1+1::0+1+1:$Date:$Time+1:999:1+6:10:16+280:$BankCode:$CustomerId:S:0:0'" +
"HKKAZ:3:${getTransactionsJob.segmentVersion}+$CustomerId::280:$BankCode+N+${convertDate(fromDate)}+${convertDate(toDate)}+$maxCountEntries'" +
"HKTAN:4:6+4+HKKAZ'" +
@ -206,8 +206,8 @@ class MessageBuilderTest : FinTsTestBase() {
expect(result.createdMessage).notToBeNull()
expect(normalizeBinaryData(result.createdMessage!!)).toBe(normalizeBinaryData(
"HNHBK:1:3+000000000389+300+0+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:16:14:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNHBK:1:3+000000000388+300+0+1'" +
"HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:2:13:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0'" +
"HNVSD:999:1+@225@" + "HNSHK:2:4+PIN:2+${SecurityFunction.code}+$ControlReference+1+1+1::0+1+1:$Date:$Time+1:999:1+6:10:16+280:$BankCode:$CustomerId:S:0:0'" +
"HKKAZ:3:${getTransactionsJob.segmentVersion}+$CustomerId::280:$BankCode+N+${convertDate(fromDate)}+${convertDate(toDate)}+$maxCountEntries+$continuationId'" +
"HKTAN:4:6+4+HKKAZ'" +

View File

@ -20,7 +20,7 @@ class VerschluesselungskopfTest : FinTsTestBase() {
val result = underTest.format()
// then
expect(normalizeBinaryData(result)).toBe("HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:16:14:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0")
expect(normalizeBinaryData(result)).toBe("HNVSK:998:3+PIN:2+998+1+1::0+1:$Date:$Time+2:2:13:@8@ :5:1+280:$BankCode:$CustomerId:V:0:0+0")
}
}