next up previous contents
Next: Source of Test Data Up: Test Data Requirements Previous: Test Data Requirements   Contents

Test Fixture

[JUnit Cookbook] defines a test fixture as a set of objects used by a test case. Test data for a test case may be used to set up its test fixture, or it may be a part of the test fixture, or it may be used for testing. Thus, test data repository needs to be able to provide access to test data when test fixture is being set up or when testing occurs. Therefore, a test data repository needs to be a part of the test fixture of the test cases that need to have access to the test data repository. (See figure 1).

Figure 1: Test data repository (Repo) is a part of the test fixture
\includegraphics[scale=.4]{fixture.eps}