Exemplo n.º 1
0
 public void tearDown() throws Exception {
   //    Utilities.invokeLater(new Runnable() {
   //      public void run() {
   _frame.dispose();
   _frame = null;
   /* try { */ MainFrameTest.super.tearDown(); /* } */
   //        catch(Exception e) { throw new UnexpectedException(e); }
   //      }
   //    });
   super.tearDown();
 }
Exemplo n.º 2
0
  /** Setup method for each JUnit test case. */
  public void setUp() throws Exception {
    super.setUp();
    // Perform ainFrame initialization in the event thread because the event thread is ALREADY
    // running
    Utilities.invokeAndWait(
        new Runnable() {
          public void run() {
            //        _log.log("super.setUp() for next test completed");

            _frame = new MainFrame();
            //        _log.log("new MainFrame() for next test completed");
            EventQueue.invokeLater(
                new Runnable() {
                  public void run() {
                    _frame.pack();
                  }
                });
            //        _log.log("setUp complete for next test");
          }
        });
  }