Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Junit in multiple threads (https://www.askmehelpdesk.com/showthread.php?t=35931)

  • Oct 5, 2006, 02:50 AM
    kishorekumar
    Junit in multiple threads
    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
  • Oct 10, 2006, 04:53 AM
    LTheobald
    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
  • Oct 11, 2006, 11:14 PM
    kishorekumar
    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.