From 65c36d61257dcb25ee6bd5485b7a804554e3a9f0 Mon Sep 17 00:00:00 2001 From: Marcello Costamagna Date: Tue, 15 Nov 2022 12:28:12 +0000 Subject: [PATCH] makes test use the specific temporary directory created for UnitTests --- src/test/java/denoptim/io/DenoptimIOTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/denoptim/io/DenoptimIOTest.java b/src/test/java/denoptim/io/DenoptimIOTest.java index 6cedc4cf4..8b7fa89d3 100644 --- a/src/test/java/denoptim/io/DenoptimIOTest.java +++ b/src/test/java/denoptim/io/DenoptimIOTest.java @@ -447,8 +447,7 @@ public void testReadAllAPClasses() throws Exception { frags.add(frag); frags.add(frag2); - String tmpFile = FileUtils.getTempFolder() - + System.getProperty("file.separator") + "frag.sdf"; + String tmpFile = tempDir.getAbsolutePath() + SEP + "frags.sdf"; DenoptimIO.writeVertexesToSDF(new File(tmpFile), frags, false); Set allAPC = DenoptimIO.readAllAPClasses(new File(tmpFile)); @@ -665,4 +664,4 @@ public void testReadCSDFormulae() throws Exception { assertTrue(data.keySet().contains("BLABLA")); assertTrue(data.keySet().contains("A")); } -} \ No newline at end of file +}