use of org.opennms.features.topology.app.internal.TestGraph in project opennms by OpenNMS.
the class HierarchyLayoutAlgorithmTest method buildLayout.
private void buildLayout() {
// Mock ALL the things
final GraphContainer mockGraphContainer = Mockito.mock(GraphContainer.class);
layout = new DefaultLayout();
final TestGraph testGraph = new TestGraph(layout, vertices, edges);
Mockito.when(mockGraphContainer.getGraph()).thenReturn(testGraph);
// Update layouts and ensure no exception is thrown
new HierarchyLayoutAlgorithm().updateLayout(testGraph);
}
Aggregations