use of org.apache.jena.graph.Node_URI in project jena by apache.
the class GraphMem_CS method testUnnecessaryMatches.
@ContractTest
public void testUnnecessaryMatches() {
Node special = new Node_URI("eg:foo") {
@Override
public boolean matches(Node s) {
fail("Matched called superfluously.");
return true;
}
};
Graph g = graphWith(graphProducer.newInstance(), "x p y");
g.add(new Triple(special, special, special));
exhaust(g.find(special, Node.ANY, Node.ANY));
exhaust(g.find(Node.ANY, special, Node.ANY));
exhaust(g.find(Node.ANY, Node.ANY, special));
}
Aggregations