I’m wondering what are the strengths and weaknesses of using JUnit for code testing?
For example, I don’t believe it is good for testing concurrency. Any input would be appreciated. Thanks
I’m wondering what are the strengths and weaknesses of using JUnit for code testing?
Share
Testing concurrent code is hard, no matter what you choose.
TestNG has a mechanism for creating multiple threads and running them in a concurrency test. I believe it’d be possible to create a bunch of FutureTasks in a JUnit test to exercise a method. It’s just not supported in JUnit 4.
The strengths? Here are a few: