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 +}