The Source for Java Technology Collaboration

As the new Java.net infrastructure contains project-level wikis, this main wiki will be shut down in the near future. For wiki page export and general wiki questions please contact the site admin at communitymanager@java.net.
Home | Help | Changes | Index | Search | Go

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

Topic JUnit . { Edit | Ref-By | Printable | Diffs r11 < r10 < r9 < r8 < r7 | More }
 XML java.net RSS

  

Revision r11 - 2008-04-09 - 18:58:26 - robogeek
Parents: WebHome > FrameworksAndLibraries