Changeset View
Changeset View
Standalone View
Standalone View
java/server/src/test/java/org/softwareheritage/graph/GraphTest.java
Show All 14 Lines | public class GraphTest { | ||||
static Graph graph; | static Graph graph; | ||||
public static <T> void assertEqualsAnyOrder(Collection<T> expecteds, Collection<T> actuals) { | public static <T> void assertEqualsAnyOrder(Collection<T> expecteds, Collection<T> actuals) { | ||||
Assert.assertThat(expecteds, containsInAnyOrder(actuals.toArray())); | Assert.assertThat(expecteds, containsInAnyOrder(actuals.toArray())); | ||||
} | } | ||||
@BeforeClass | @BeforeClass | ||||
public static void setUp() throws IOException { | public static void setUp() throws IOException { | ||||
Path graphPath = Paths.get("..", "..", "tests", "dataset", "output", "example"); | Path graphPath = Paths.get("..", "..", "swh", "graph", "tests", "dataset", "output", "example"); | ||||
graph = new Graph(graphPath.toString()); | graph = new Graph(graphPath.toString()); | ||||
} | } | ||||
public Graph getGraph() { | public Graph getGraph() { | ||||
return graph; | return graph; | ||||
} | } | ||||
} | } |