Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
student:junit:gui [2025/01/26 14:10] – created bernstdhstudent:junit:gui [2025/01/30 14:52] (current) bernstdh
Line 10: Line 10:
   - The top-level container must be disposed of (using ''dispose()'') after the tests have been run (so that the event dispatch thread terminates).   - The top-level container must be disposed of (using ''dispose()'') after the tests have been run (so that the event dispatch thread terminates).
  
 +Also, remember not to manually move the mouse or use the keyboard while the tests are being run!
 ===== Button Presses ===== ===== Button Presses =====
  
Line 114: Line 115:
     // Test mouse handling     // Test mouse handling
     Robot robot = new Robot();     Robot robot = new Robot();
-    robot.setAutoDelay(50);+    robot.setAutoDelay(100);
     robot.setAutoWaitForIdle(true);     robot.setAutoWaitForIdle(true);
          
Line 136: Line 137:
          
     window.setVisible(false);     window.setVisible(false);
-    window.dispose(); // Terminate the event dispatch thread+    window.dispose(); // So the event dispatch thread terminates
   }   }