We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Rewrite current Concurrent Tests to use Concurrent Utils; CountDownLatch|CyclicBarrier instead of slow and unsafe Thread.sleep()
e.g. https://github.com/arun-gupta/javaee7-samples/blob/master/concurrency/managedexecutor/src/test/java/org/javaee7/concurrency/managedexecutor/ExecutorInjectTest.java#L72
final CountDownLatch signal = new CountDownLatch(1); defaultExecutor.submit(new MyRunnableTask(1) { void run() { super.run(); signal.countDown(); } }); Assert.assertTrue(signal.await(2000, TimeUnit.MILLISECONDS))
Changed the tests to use CountDownLatch now. Only created unit tests for managedexecutor. Do you want to create for others ?
#136
Merge pull request javaee-samples#74 from breakponchito/FISH-6355-fix…
Activity
aslakknutsen commentedon Nov 27, 2013
Rewrite current Concurrent Tests to use Concurrent Utils; CountDownLatch|CyclicBarrier instead of slow and unsafe Thread.sleep()
e.g. https://github.com/arun-gupta/javaee7-samples/blob/master/concurrency/managedexecutor/src/test/java/org/javaee7/concurrency/managedexecutor/ExecutorInjectTest.java#L72
arun-gupta commentedon Nov 28, 2013
Changed the tests to use CountDownLatch now. Only created unit tests for managedexecutor. Do you want to create for others ?
aslakknutsen commentedon Nov 28, 2013
#136
Merge pull request javaee-samples#74 from breakponchito/FISH-6355-fix…