assertFalse(iterator.hasNext());
}
@Test
public void testGetTriples() {
TcProvider simpleTcmProvider = getInstance();
// add Graphs
MGraph mGraph = new SimpleMGraph();
mGraph.add(new TripleImpl(uriRefA, uriRefA, uriRefA));
simpleTcmProvider.createGraph(uriRefA, mGraph);
mGraph = new SimpleMGraph();
mGraph.add(new TripleImpl(uriRefB, uriRefB, uriRefB));
simpleTcmProvider.createGraph(uriRefB, mGraph);
// add MGraphs
mGraph = simpleTcmProvider.createMGraph(uriRefA1);
mGraph.add(new TripleImpl(uriRefA1, uriRefA1, uriRefA1));
mGraph = simpleTcmProvider.createMGraph(uriRefB1);
mGraph.add(new TripleImpl(uriRefB1, uriRefB1, uriRefB1));
// get a Graph
TripleCollection tripleCollection = simpleTcmProvider.getTriples(uriRefA);
// get a MGraph
TripleCollection tripleCollection2 = simpleTcmProvider.getTriples(uriRefB1);
Iterator<Triple> iterator = tripleCollection.iterator();
assertEquals(new TripleImpl(uriRefA, uriRefA, uriRefA), iterator.next());
assertFalse(iterator.hasNext());