@Test public void testDynamicThreadExecutesAsyncs() throws InterruptedException { ThreadId threadId = ThreadId.createFresh(); JobQueue async_jobQueue = new JobQueue(__javaThreadPoolFactory, threadId); TestWorkAt workAt = new TestWorkAt(); testAsyncJobQueue(workAt, async_jobQueue, threadId); assertEquals(TestWorkAt.MESSAGES, workAt._async_counter); assertEquals(TestWorkAt.MESSAGES, workAt._sync_counter); }
@Test public void testDynamicThreadExecutesJob() throws InterruptedException { testExecuteJobs(new JobQueue(__javaThreadPoolFactory, ThreadId.createFresh(), true)); }