use of org.apache.jena.rdf.listeners.NullListener in project jena by apache.
the class TestModelEvents method testNullListener.
/**
* Test that the null listener doesn't appear to do anything. Or at least
* doesn't crash ....
*/
public void testNullListener() {
final ModelChangedListener NL = new NullListener();
model.register(NL);
model.add(ModelHelper.statement(model, "S P O "));
model.remove(ModelHelper.statement(model, "X Y Z"));
model.add(ModelHelper.statements(model, "a B c; d E f"));
model.remove(ModelHelper.statements(model, "g H i; j K l"));
model.add(asIterator(ModelHelper.statements(model, "model N o; p Q r")));
model.remove(asIterator(ModelHelper.statements(model, "s T u; v W x")));
model.add(ModelHelper.modelWithStatements(this, "leaves fall softly"));
model.remove(ModelHelper.modelWithStatements(this, "water drips endlessly"));
model.add(Arrays.asList(ModelHelper.statements(model, "xx RR yy")));
model.remove(Arrays.asList(ModelHelper.statements(model, "aa VV rr")));
}
Aggregations