Ignore:
Timestamp:
05/10/18 16:04:51 (6 years ago)
Author:
davidb
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/org/expeditee/gui/DisplayIOTest.java

    r361 r1102  
    1111                showBlankFrame();
    1212
    13                 DisplayIO.ToggleTwinFrames();
    14                 assertTrue(DisplayIO.isTwinFramesOn());
    15                 DisplayIO.ToggleTwinFrames();
    16                 assertFalse(DisplayIO.isTwinFramesOn());
     13                DisplayController.toggleTwinFrames();
     14                assertTrue(DisplayController.isTwinFramesOn());
     15                DisplayController.toggleTwinFrames();
     16                assertFalse(DisplayController.isTwinFramesOn());
    1717        }
    1818
     
    2222               
    2323                //Draw a rectangle
    24                 DisplayIO.setCursorPosition(250, 250);
     24                DisplayController.setCursorPosition(250, 250);
    2525                Thread.sleep(100);
    26                 DisplayIO.clickMouse(InputEvent.BUTTON3_MASK);
     26                DisplayController.clickMouse(InputEvent.BUTTON3_MASK);
    2727                Thread.sleep(100);
    28                 DisplayIO.setCursorPosition(500, 500);
     28                DisplayController.setCursorPosition(500, 500);
    2929                Thread.sleep(100);
    30                 DisplayIO.clickMouse(InputEvent.BUTTON3_MASK);
     30                DisplayController.clickMouse(InputEvent.BUTTON3_MASK);
    3131                Thread.sleep(1000);
    3232                //Check that the line is there
     
    4242        public static void drawLine() throws InterruptedException {
    4343                //Draw a line
    44                 DisplayIO.setCursorPosition(100, 100);
     44                DisplayController.setCursorPosition(100, 100);
    4545                Thread.sleep(500);
    46                 DisplayIO.clickMouse(InputEvent.BUTTON2_MASK);
     46                DisplayController.clickMouse(InputEvent.BUTTON2_MASK);
    4747                Thread.sleep(100);
    48                 DisplayIO.setCursorPosition(200, 200);
     48                DisplayController.setCursorPosition(200, 200);
    4949                Thread.sleep(100);
    50                 DisplayIO.clickMouse(InputEvent.BUTTON2_MASK);
     50                DisplayController.clickMouse(InputEvent.BUTTON2_MASK);
    5151                Thread.sleep(100);
    5252        }
Note: See TracChangeset for help on using the changeset viewer.