Listing D
package mypackage1.test;
import junit.framework.Test;
import junit.framework.TestSuite;
import junit.swingui.TestRunner;
 
 
public class AllTests {
  
    public static Test suite() {
        TestSuite suite;
        suite = new TestSuite("AllTests");
        suite.addTestSuite(FormatDateTester.class);
        return suite;
    }
  
    public static void main(String args[]) {
        String swingArgs[] = {"-noloading", "mypackage1.test.AllTests"};
      
        //Swing
        TestRunner.main(swingArgs);
      
        //Text
        //junit.textui.TestRunner.run(suite());
    }
}