Skip to content

Commit

Permalink
makes test use the specific temporary directory created for UnitTests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellocostamagna committed Nov 15, 2022
1 parent 5188862 commit 65c36d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/java/denoptim/io/DenoptimIOTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<APClass> allAPC = DenoptimIO.readAllAPClasses(new File(tmpFile));
Expand Down Expand Up @@ -665,4 +664,4 @@ public void testReadCSDFormulae() throws Exception {
assertTrue(data.keySet().contains("BLABLA"));
assertTrue(data.keySet().contains("A"));
}
}
}

0 comments on commit 65c36d6

Please sign in to comment.