 |
JUnit
A popular open-source unit-testing framework for Java hosted at http://junit.org/. Extreme Programming recommends developing unit tests before coding (or at least concurrently). Developers like to use JUnit for all kinds of Java applications. For unit testing server-side code, check out Apache Jakarta Cactus.
Developer has to write Junit Class crosspond to every class he wants to test. This junit class should be written based on junit framework. There can be one or more method to verify single original method.
Some JavaIDEs include direct support for creating and running JUnit test suites. Apache Maven provides a good framework for maintaining tests, as do most ContinuousIntegration tools.
JUnit becomes even more useful with automatically generated test protocols.
See also
See Testing for more (general) information on testing Java applications.
Discussion about JUnit
|