01: package example;
02:
03: import java.io.File;
04:
05: import junit.extensions.abbot.*;
06: import junit.framework.Test;
07:
08: /** Collects scripts which test the FontChooser GUI component. */
09:
10: public class FontChooserTest extends ScriptFixture {
11:
12: public FontChooserTest(String filename) {
13: super (filename);
14: }
15:
16: /** Provide a default test suite for this test case. */
17: public static Test suite() {
18: return new ScriptTestSuite(FontChooserTest.class,
19: "src/example/scripts/FontChooser") {
20: public boolean accept(File file) {
21: return super .accept(file)
22: && !file.getName().equals("fixture.xml");
23: }
24: };
25: }
26:
27: public static void main(String[] args) {
28: TestHelper.runTests(args, FontChooserTest.class);
29: }
30: }
|