next up previous contents
Next: Class Repo Up: Using Repo Previous: JUnit Test Suite Organization   Contents


Skeleton of a Test Case

The following skeleton will be used in this document for all examples:

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import junit.extensions.repo.*;

public class MyTestCase extends TestCase {

    private Repo repo;

    public MyTestCase(String name) {
        super(name);
    }

    public static Test suite() {
        return new TestSuite(MyTestCase.class);
    }

    protected void setUp() {
        // ...
    }

    // ...
}



Subsections