use of org.apache.jena.tdb.TDBException in project jena by apache.
the class AbstractTestNodeTable method writeBadNode.
protected static void writeBadNode(NodeTable nt, Node badNode) {
NodeId id1 = nt.allocOffset();
try {
NodeId nodeId = nt.getAllocateNodeId(badNode);
fail("Expected exception for bad node: " + badNode);
} catch (TDBException ex) {
}
NodeId id2 = nt.allocOffset();
assertEquals(id1, id2);
}
Aggregations