GraphViewStore { public void setVisibleView(GraphView view) { if (view == null || view == graphStore.mainGraphView) { visibleView = graphStore.mainGraphView; } else { checkNonNullViewObject(view); checkViewExist((GraphViewImpl) view); visibleView = view; } } GraphViewStore(GraphStore graphStore); GraphViewImpl createView(); GraphViewImpl createView(boolean nodes, boolean edges); GraphViewImpl createView(GraphView view); GraphViewImpl createView(GraphView view, boolean nodes, boolean edges); void destroyView(GraphView view); void setTimeInterval(GraphView view, Interval interval); boolean contains(GraphView view); int size(); Subgraph getGraph(GraphView view); DirectedSubgraph getDirectedGraph(GraphView view); UndirectedSubgraph getUndirectedGraph(GraphView view); GraphView getVisibleView(); void setVisibleView(GraphView view); GraphObserverImpl createGraphObserver(Graph graph, boolean withDiff); void destroyGraphObserver(GraphObserverImpl graphObserver); int deepHashCode(); boolean deepEquals(GraphViewStore obj);  }
@Test public void testSetVisibleView() { GraphStore graphStore = GraphGenerator.generateSmallGraphStore(); GraphViewStore store = graphStore.viewStore; GraphView view = store.createView(); store.setVisibleView(view); GraphView visibleView = store.getVisibleView(); Assert.assertNotNull(view); Assert.assertEquals(visibleView, view); }