5960616263646566676869
DeterministicScheduler pool = new DeterministicScheduler(); // set the pool manager.setPool( pool ); // executes all pending actions using current thread pool.runUntilIdle(); // check expectations context.assertIsSatisfied(); }
8384858687888990919293
// fire scenario manager.enqueue( action ); // executes all pending actions using current thread pool.runUntilIdle(); // check expectations context.assertIsSatisfied(); }
113114115116117118119120121122123
manager.enqueue( action ); manager.enqueue( action ); manager.enqueue( action ); // executes all pending actions using current thread pool.runUntilIdle(); // check expectations context.assertIsSatisfied(); }