5556575859606162636465
taskGroup.register(runnable3); TaskGroup.FinishLatch latch = taskGroup.execute(); // Run all tasks mockExecutor.drain(); // Should not block latch.await(); Assert.assertTrue(runnable1.isRun());