txnScheduler.runTask(task, taskOwner);
}
@Test public void runTransactionFromScheduledTask() throws Exception {
final RunCountTestRunner countRunner = new RunCountTestRunner(1);
KernelRunnable task = new TestAbstractKernelRunnable() {
public void run() throws Exception {
txnScheduler.runTask(countRunner, taskOwner);
}
};
txnScheduler.scheduleTask(task, taskOwner);