From ca43afa3870943499b35708916b42bd60710899e Mon Sep 17 00:00:00 2001 From: Nick Molcanov <32801560+nck-mlcnv@users.noreply.github.com> Date: Fri, 3 Nov 2023 16:16:08 +0000 Subject: [PATCH] Add debug print --- .../java/org/aksw/iguana/cc/storage/impl/CSVStorageTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/aksw/iguana/cc/storage/impl/CSVStorageTest.java b/src/test/java/org/aksw/iguana/cc/storage/impl/CSVStorageTest.java index db1d5ff5..c9fb3ed4 100644 --- a/src/test/java/org/aksw/iguana/cc/storage/impl/CSVStorageTest.java +++ b/src/test/java/org/aksw/iguana/cc/storage/impl/CSVStorageTest.java @@ -123,6 +123,9 @@ private void compareCSVFiles(Path expected, Path actual) throws IOException { throw new RuntimeException(String.format("CSV format in file %s is malformed.", expected), e); } + // print all lines that are in actual + System.out.println("Actual lines:" + actualValues.stream().map(x -> "[" + String.join(", ", x) + "]").collect(Collectors.joining("\n"))); + for (String[] expectedLine : expectedValues) { List sameLines = actualValues.stream().filter(x -> { for (int i = 0; i < expectedLine.length; i++) {