use of fr.lirmm.graphik.graal.forward_chaining.rule_applier.DefaultRuleApplier in project graal by graphik-team.
the class StoreTest method bugConcurrentModificationException.
@Theory
public void bugConcurrentModificationException(InMemoryAtomSet store) throws IteratorException, RuleApplicationException, AtomSetException {
Assume.assumeTrue(store instanceof Store);
Rule r = DlgpParser.parseRule("<T>(Z,W), <P>(Y,W) :- <P>(X,Y).");
store.addAll(DlgpParser.parseAtomSet("<P>(a,a)."));
try {
DefaultRuleApplier<InMemoryAtomSet> applier = new DefaultRuleApplier<InMemoryAtomSet>();
applier.apply(r, store);
applier.apply(r, store);
} catch (Exception e) {
Assert.fail();
}
}
Aggregations