(a)
java -Djunit.data=MyFooTest.ini junit.swingui.TestRunner FooTest
java -Djunit.data=./test/data junit.swingui.TestRunner FooTest

(b)
# FooTest.ini
foo.FooTest.testFoo.key1=XYZ
FooTest.testFoo.key2=true
FooTest.key3=9999
Key4=3.1415927

(c)
 # AllTests.ini
 .default.0=FooTest.ini 
 .default.1=BarTest.ini

Example 1: (a) Specifying a test data repository; (b) content of a test data repository; (c) content of a test data repository for a master suite.

Back to Article