Skip to content

Commit

Permalink
Add test case to KBC Group PDF-Importer (#4389)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirus2000 authored Dec 8, 2024
1 parent 4b3e78d commit 13ea236
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,26 @@ public void testRekeninguittreksel03()
assertThat(results, hasItem(deposit(hasDate("2023-06-12"), hasAmount("EUR", 132673.91), //
hasSource("Rekeninguittreksel03.txt"), hasNote("Provisionering rekening klant"))));
}

@Test
public void testRekeninguittreksel04()
{
KBCGroupNVPDFExtractor extractor = new KBCGroupNVPDFExtractor(new Client());

List<Exception> errors = new ArrayList<>();

List<Item> results = extractor.extract(PDFInputFile.loadTestCase(getClass(), "Rekeninguittreksel04.txt"),
errors);

assertThat(errors, empty());
assertThat(countSecurities(results), is(0L));
assertThat(countBuySell(results), is(0L));
assertThat(countAccountTransactions(results), is(1L));
assertThat(results.size(), is(1));
new AssertImportActions().check(results, CurrencyUnit.EUR);

// assert transaction
assertThat(results, hasItem(deposit(hasDate("2024-09-05"), hasAmount("EUR", 5.00), //
hasSource("Rekeninguittreksel04.txt"), hasNote("Provisionering rekening klant"))));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
```
PDFBox Version: 1.8.17
Portfolio Performance Version: 0.72.3.qualifier
System: win32 | x86_64 | 21.0.4+7-LTS | Azul Systems, Inc.
-----------------------------------------
ABBELOOS-STREUMER VICTOR-CHANTAL
Overzicht transacties en rekeninguittreksels voor klantnummer 4742538
05/09/2024
EUR-REKENING - 40
Rekeninguittreksel Nr 32 Vorig Saldo: -0,47 EUR
05/09/2024 Provisionering rekening klant Valuta 05/09/2024 5,00 EUR
Mededeling: ABBELOOS-STREUMER V & C
Nieuw Saldo 4,53 EUR
Dit deposito komt in aanmerking voor depositobescherming. Meer info: www.kbc.be/depositobescherming
Heb je nog vragen ? Gelieve je te richten tot de Bolero order desk
ABBELOOS-STREUMER VICTOR-CHANTAL Pagina 1
0964124
_______________________________________________________________________________________
KBC BANK NV Documentreferte: 41
Havenlaan 2, 1080 Brussels, Belgium VAT BE 0462.920.226
Account N° BE77 4096 5474 0142 - BIC KREDBEBB

```

0 comments on commit 13ea236

Please sign in to comment.