Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Doing JUnit tests for code with threads

Options
  • 23-08-2008 2: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