Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Doing JUnit tests for code with threads

  • 23-08-2008 02:33PM
    #1
    Closed Accounts Posts: 324 ✭✭


    Hi
    I'm doing JUnit testing for a piece of code at the moment, and the code creates threads in several places to do different things.
    All good, except JUnit just seems to launch the thread and doesn't actually test it.

    What is the best way to go about testing code like this?
    Is this the best approach?
    http://groboutils.sourceforge.net/testing-junit/using_mtt.html

    It seems to be the best bet, but I don't want to use something that will be unheard of in a year's time.

    Thanks:D
    Tagged:


Advertisement