diff --git a/src/test/java/org/ohdsi/webapi/cohortcharacterization/CohortCharacterizationServiceTest.java b/src/test/java/org/ohdsi/webapi/cohortcharacterization/CohortCharacterizationServiceTest.java index f010a5873..3d0882cd8 100644 --- a/src/test/java/org/ohdsi/webapi/cohortcharacterization/CohortCharacterizationServiceTest.java +++ b/src/test/java/org/ohdsi/webapi/cohortcharacterization/CohortCharacterizationServiceTest.java @@ -37,6 +37,7 @@ import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; +import java.nio.file.Paths; import java.sql.SQLException; import java.util.*; @@ -207,6 +208,16 @@ private ZipFile getZipFile(Long id, ParamItem paramItem) throws IOException { } System.out.println("BAOS Size: " + baos.size()); System.out.println("Temporary File Size: " + tempFile.length()); + try { + List lines = Files.readAllLines(Paths.get(tempFile.getAbsolutePath())); + System.out.println("File Contents:"); + for (String line : lines) { + System.out.println(line); + } + } catch (IOException e) { + System.out.println("Error reading file."); + e.printStackTrace(); + } return new ZipFile(tempFile); }