Due to its simplicity JUnit should be first option when testing the java applications. JUnit can be used separately or integrated with build tools like Maven and Ant and third party extensions, such as dbUnit cor database testing operations, xmlUnit.
Simple framework for writing automated, self-verifying tests in Java
Support for test assertions
Test suite development
Immediate test reporting Review collected by and hosted on G2.com.
It cannot do dependency testing as opposed to TestNG framework.
It's not suitable for higher level testing i.e. for large test suites.
Group testing cannot be done in JUnit, which is available in TestNG.
Can't create HTML reports of test cases. You need to use ANT to create tests HTML reports. Review collected by and hosted on G2.com.
