PDA

View Full Version : Junit in multiple threads


kishorekumar
Oct 5, 2006, 02:50 AM
Hi,
When running JUnit in one thread and creating assertions failures in another
Thread, JUnit is not able to catch the assertion failures. So the test case passes.
How to deal with this problem of Junit in multiple threads.

- kishore

LTheobald
Oct 10, 2006, 04:53 AM
Yes, it looks like JUnit cannot catch assertions in non-JUnit threads. This thread did suggest a solution though if you are using JDK 1.5 or greater.

http://www.manning-sandbox.com/thread.jspa?messageID=53045&tstart=0

kishorekumar
Oct 11, 2006, 11:14 PM
Thanks for the useful reply Mr.LTheobald. But unfortunately we are using jdk1.4.