JUnit
A unit testing framework for Java.
JUnit 4
Section titled “JUnit 4”Annotations
Section titled “Annotations”You can use annotations. Now there is no need to extend TestCase, instead you can annotate methods
using the @Test annotation.
import org.junit.Test;
public class UrlLinkFilterTest { @Test public void testFilter() { // stub }}JUnit FAQ
Section titled “JUnit FAQ”The JUnit FAQ covers most questions you may have when using JUnit.