FINERACT-2181: Accruals on accounts where charge adjustments and refunds are done on the same day causing duplicate journal entries

This commit is contained in:
mariiaKraievska
2025-06-18 12:14:20 +02:00
committed by Adam Saghy
parent 5649aa3ded
commit 496e37e3d4
17 changed files with 160 additions and 198 deletions
@@ -108,6 +108,10 @@ public class JournalEntriesStepDef extends AbstractStepDef {
}).collect(Collectors.toList());
List<List<String>> data = table.asLists();
final int expectedCount = data.size() - 1;
final int actualCount = journalLinesActualList.stream().mapToInt(List::size).sum();
assertThat(actualCount).as("The number of journal entries for the transaction does not match the expected count! Expected: "
+ expectedCount + ", Actual: " + actualCount).isEqualTo(expectedCount);
for (int i = 1; i < data.size(); i++) {
List<List<List<String>>> possibleActualValuesList = new ArrayList<>();
List<String> expectedValues = data.get(i);