next up previous contents
Next: Test Data Organization Up: Skeleton of a Test Previous: Skeleton of a Test   Contents

Class Repo

Class junit.extensions.repo.Repo is the main abstraction of the framework. It defines an interface to access files and resources using to methods:

Both of these methods are abstract, so class Repo serves as an abstract base class for other classes in the framework.

Test cases that need to have access to a test data repository must have an instance of class Repo in their fixtures. This instance has to be constructed in method setUp() along with other fixtures.