About JUnit

Component Testing for Java

Rational Test RealTime uses JUnit as a standard framework for Component Testing for Java.

The current documentation assumes that you have basic knowledge and understanding of the working principles of:

Component Testing for Java adapts JUnit to either the J2SE or J2ME framework via Target Deployment Technology.

JUnit Overview

JUnit is a regression testing framework written by Erich Gamma and Kent Beck. JUnit is Open Source Software, released under the IBM's Common Public License Version 0.5 and hosted on the SourceForge website

Please refer to the JUnit documentation for further information about JUnit. More information on JUnit can be found at the following locations:

http://junit.sourceforge.net

http://www.junit.org

JUnit for J2ME

Basic JUnit was originally written for the J2SE framework. Rational Test RealTime brings offers an additional JUnit implementation for J2ME, referred to as JUnit for J2ME.

Test RealTime JUnit Extensions

Rational Test RealTime extends the JUnit assert primitives with a set of verify primitives.

The following UML model diagram demonstrates the basic structure of JUnit as well as how Test RealTime extends the JUnit model.

 

 

The main difference of the verify primitives is that failed verify tests do not stop the execution of the test program.

The complete list of extended verify primitives can be found in the Reference section

Related Topics

J2ME SpecificsJava Test Harness