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
![]() |
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
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/threa...53045&tstart=0
Thanks for the useful reply Mr.LTheobald. But unfortunately we are using jdk1.4.
All times are GMT -7. The time now is 11:04 AM. |