New unit testing framework for Java [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
开发者_JAVA技巧Closed 11 years ago.
Improve this questionI'm looking into new frameworks to perform some unit testing on a java project. I am aware of junit, but beyond that I haven't found much of consequence. Are there any frameworks out there that are recommended?
TestNG is something you have a look at. I have used it. Provides a lot of features that JUnit provides.
This page has advantages of TestNG Over Junit.
TestNG is quite a popular choice. And then there is JDave if you are looking for a BDD style framework.
To complement JUnit, there are mocking libraries such as JMock and EasyMock.
If it's pure unit testing, maybe try TestNG, but either way you should be fine with either JUnit or TestNG
精彩评论