diff --git a/api/server/src/test/java/org/softwareheritage/graph/AppTest.java b/api/server/src/test/java/org/softwareheritage/graph/AppTest.java deleted file mode 100644 index cbd766b..0000000 --- a/api/server/src/test/java/org/softwareheritage/graph/AppTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.softwareheritage.graph; - -import static org.junit.Assert.assertTrue; - -import org.junit.Test; - -public class AppTest -{ - @Test - public void shouldAnswerWithTrue() - { - assertTrue(true); - } -} diff --git a/api/server/src/test/java/org/softwareheritage/graph/GraphTest.java b/api/server/src/test/java/org/softwareheritage/graph/GraphTest.java new file mode 100644 index 0000000..e56f8ae --- /dev/null +++ b/api/server/src/test/java/org/softwareheritage/graph/GraphTest.java @@ -0,0 +1,22 @@ +package org.softwareheritage.graph; + +import org.junit.BeforeClass; + +import org.softwareheritage.graph.Graph; + +public class GraphTest +{ + static Graph graph; + + @BeforeClass + public static void setUp() + { + String graphPath = System.getProperty("graphPath"); + graph = new Graph(graphPath); + } + + public Graph getGraph() + { + return graph; + } +}