source: trunk/tests/org/expeditee/gui/GuiTestCase.java@ 1102

Last change on this file since 1102 was 1102, checked in by davidb, 6 years ago

Reworking of the code-base to separate logic from graphics. This version of Expeditee now supports a JFX graphics as an alternative to SWING

File size: 745 bytes
Line 
1package org.expeditee.gui;
2
3import junit.framework.TestCase;
4
5public class GuiTestCase extends TestCase {
6
7 static Browser b;
8
9 protected void setUp() throws Exception {
10 b = Browser.initializeForTesting();
11 super.setUp();
12
13 /* Just incase previous tests left something on the cursor clear it now! */
14 FreeItems.getInstance().clear();
15 }
16
17 protected Frame showBlankFrame(){
18 Frame testFrame = FrameIO.LoadFrame("ExpediteeTest1");
19 testFrame.clear(false);
20 DisplayController.setCurrentFrame(testFrame, true);
21 return testFrame;
22 }
23
24 protected Frame showFrame(String frameName){
25 Frame testFrame = FrameIO.LoadFrame(frameName);
26 testFrame.clear(false);
27 DisplayController.setCurrentFrame(testFrame, true);
28 return testFrame;
29 }
30}
Note: See TracBrowser for help on using the repository browser.