JUnit

Beispiel:

import static org.junit.Assert.*;
import org.junit.Test;
public class T {
    @Test
    public void t1 () {
        assertTrue(1 + 2 == 3);
    }
}
Eclipse: new junit(4)test case, run as test case

Johannes Waldmann 2011-07-07