/** * Test that adding a graph is reported as adding a graph. */ @ContractTest public void testAddGraph() { gem.register(L); Graph other = Mockito.mock(Graph.class); gem.notifyAddGraph(mockGraph, other); L.assertHas(new Object[] { "addGraph", mockGraph, other }); }
/** * Test that adding a graph is reported as adding a graph. */ @ContractTest public void testAddGraph() { gem.register(L); Graph other = Mockito.mock(Graph.class); gem.notifyAddGraph(mockGraph, other); L.assertHas(new Object[] { "addGraph", mockGraph, other }); }
/** Add triples into the destination (arg 1) from the source (arg 2)*/ public static void addInto(Graph dstGraph, Graph srcGraph ) { if ( dstGraph == srcGraph && ! dstGraph.getEventManager().listening() ) return ; dstGraph.getPrefixMapping().setNsPrefixes(srcGraph.getPrefixMapping()) ; addIteratorWorker(dstGraph, findAll( srcGraph )); dstGraph.getEventManager().notifyAddGraph( dstGraph, srcGraph ); }
/** Add triples into the destination (arg 1) from the source (arg 2)*/ public static void addInto(Graph dstGraph, Graph srcGraph ) { if ( dstGraph == srcGraph && ! dstGraph.getEventManager().listening() ) return ; dstGraph.getPrefixMapping().setNsPrefixes(srcGraph.getPrefixMapping()) ; addIteratorWorker(dstGraph, findAll( srcGraph )); dstGraph.getEventManager().notifyAddGraph( dstGraph, srcGraph ); }