import static org.junit.Assert.*; import org.junit.Test; /** * the bare minimum * use the "@Test" annotation * and static method "assertEquals" * * run using: java org.junit.runner.JUnitCore AdditionTest */ public class AdditionTest { @Test public void add() { int result = 2 + 3; assertEquals(5, result); } }