Java tutorial
import junit.framework.*; public class JavaTest extends TestCase { protected int value1, value2; // assigning the values protected void setUp() { value1 = 1; value2 = 1; } // test method to add two values public void testAdd() { double result = value1 + value2; assertTrue(result == 2); } }