Save This Page
Home » hibernate-search-src-20081106 » example » [javadoc | source]
    1   package example;
    2   
    3   import java.io.File;
    4   
    5   import junit.extensions.abbot;
    6   import junit.framework.Test;
    7   
    8   /** Collects scripts which test the FontChooser GUI component.  */
    9   
   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   }

Save This Page
Home » hibernate-search-src-20081106 » example » [javadoc | source]