JUnit

Unit testing framework for Java.

JUnit 4

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

The JUnit FAQ covers most questions you will have when using JUnit.

Published: Wednesday, 11 August 2004
Updated: Sunday, 10 October 2010