JUnit for Java
JUnit testing framework for Java was originally created by Erich Gamma and Kent Beck. It is based on Kent Beck’s SUnit. JUnit is very extensively used in Java development. JUnit provides infrastructural code required to write unit tests in Java.
JUnit has been ported into various other languages including JavaScript. It is also a key framework in test driven development.
Sample test case in JUnit,
public class HelloWorld extends TestCase
{
public void testAddition()
{
// Testing if 3+2=5:
assertEquals (”Addition”, 5, 3+2);
}
}