diff --git a/solver/src/test/java/org/chocosolver/solver/search/loop/monitors/GephiNetworkTest.java b/solver/src/test/java/org/chocosolver/solver/search/loop/monitors/GephiNetworkTest.java index 62a52e9197..3c2018cafe 100644 --- a/solver/src/test/java/org/chocosolver/solver/search/loop/monitors/GephiNetworkTest.java +++ b/solver/src/test/java/org/chocosolver/solver/search/loop/monitors/GephiNetworkTest.java @@ -15,6 +15,7 @@ import java.io.File; import java.io.IOException; +import java.nio.file.Files; /** *
@@ -28,15 +29,15 @@ public class GephiNetworkTest { @Test(groups = "1s", timeOut = 60000) public void test1() throws IOException { Model s1 = ProblemMaker.makeCostasArrays(7); - File temp = File.createTempFile("tmp", ".gexf"); + File temp = Files.createTempFile("tmp", ".gexf").toFile(); s1.getSolver().constraintNetworkToGephi(temp.getAbsolutePath()); } @Test(groups = "1s", timeOut = 60000) public void test2() throws IOException { Model s1 = ProblemMaker.makeGolombRuler(11); - File temp = File.createTempFile("tmp", ".gexf"); + File temp = Files.createTempFile("tmp", ".gexf").toFile(); s1.getSolver().constraintNetworkToGephi(temp.getAbsolutePath()); } -} \ No newline at end of file +}