From 430e32c28a3f52fa639c3873727e4fc14d660a02 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Sun, 19 Apr 2020 10:42:22 +0200 Subject: [PATCH] delete result csv file when test is successful This prevents leftover "tabula-java-batch-test568701853028748575" directories on Windows 10. Maybe the earlier "deleteOnExit()" works only on linux on non empty directories. --- src/test/java/technology/tabula/TestCommandLineApp.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/technology/tabula/TestCommandLineApp.java b/src/test/java/technology/tabula/TestCommandLineApp.java index 3e4dafa7..d26c55ee 100644 --- a/src/test/java/technology/tabula/TestCommandLineApp.java +++ b/src/test/java/technology/tabula/TestCommandLineApp.java @@ -64,6 +64,7 @@ public void testExtractBatchSpreadsheetWithArea() throws ParseException, IOExcep Path csvPath = tmpFolder.resolve(fs.getPath("spreadsheet.csv")); assertTrue(csvPath.toFile().exists()); assertArrayEquals(expectedCsv.getBytes(), Files.readAllBytes(csvPath)); + Files.delete(csvPath); } @Test