Provides access to
test-data directories associated with JUnit tests.
We have chosen "
test-data " to follow the javadoc "
doc-files " convention
of ensuring that data directories don't look anything like normal java packages.
Example:
class MyClass {
public void example() {
Image testImage = new ImageIcon(TestData.url(this, "test.png")).getImage();
Reader reader = TestData.openReader(this, "script.xml");
// ... |