@Test public void testWithInterrupts() { run(new TestInterrupter(new RandomInterruptMonitor(random, INTERRUPTION_CHANCE, INTERRUPTION_INTERVAL_NANOS))); }
@Override public void initWithInterrupts() throws Exception { final ReasonerConfiguration config = ReasonerConfiguration .getConfiguration(); config.setParameters(additionalConfigWithInterrupts()); final Random random = new Random(RandomSeedProvider.VALUE); reasoner_ = TestReasonerUtils.createTestReasoner( getManifest().getInput().getUrl().openStream(), new TestReasonerInterrupter(new RandomInterruptMonitor(random, getInterruptionChance(), getInterruptionIntervalNanos())), config); }
@Override public void initWithInterrupts() throws Exception { standardReasoner_ = TestReasonerUtils.createTestReasoner( new TestChangesLoader(allAxioms_, IncrementalChangeType.ADD)); standardReasoner_.setAllowIncrementalMode(false); final ReasonerConfiguration config = ReasonerConfiguration .getConfiguration(); config.setParameters(additionalConfigWithInterrupts()); final Random random = new Random(RandomSeedProvider.VALUE); incrementalReasoner_ = TestReasonerUtils.createTestReasoner( getManifest().getInput().getUrl().openStream(), new TestReasonerInterrupter(new RandomInterruptMonitor(random, getInterruptionChance(), getInterruptionIntervalNanos())), config); incrementalReasoner_.setAllowIncrementalMode(true); }