Changeset 310


Ignore:
Timestamp:
09/22/08 16:22:14 (16 years ago)
Author:
ra33
Message:

Fixed a couple of bugs that were makin unit tests fail

Location:
trunk/tests/org/expeditee/gui
Files:
1 added
3 edited

Legend:

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

    r234 r310  
    6363                                { "  Att2  :  Value2  ", "Att2" }, { "@NoValue", "NoValue" },
    6464                                { "@Att3 : Value", null }, { "@ Att3: Value", null },
    65                                 { " @Att3: Value ", "@Att3" }, { ": value3", null },
    66                                 { "@1Test: value3", null }, { "@t est: value3", null },
     65                                { " @Att3: Value ", "Att3" }, { ": value3", null },
     66                                { "@1Test: value3", "1Test" }, { "@t est: value3", null },
    6767                                { "Att4 : test : value4", "Att4 : test" }, { "@", null },
    6868                                { "a", null }, { "*!*", null }, { "*!*: @%@", "*!*" } };
  • trunk/tests/org/expeditee/gui/DisplayIOTest.java

    r240 r310  
    3030                testFrame.clear(false);
    3131                DisplayIO.setCurrentFrame(testFrame, true);
    32                 //Draw a line
    33                 DisplayIO.setCursorPosition(100, 100);
    34                 Thread.sleep(1000);
    35                 DisplayIO.clickMouse(InputEvent.BUTTON2_MASK);
    36                 Thread.sleep(100);
    37                 DisplayIO.setCursorPosition(200, 200);
    38                 Thread.sleep(100);
    39                 DisplayIO.clickMouse(InputEvent.BUTTON2_MASK);
    40                 Thread.sleep(100);
     32                drawLine();
    4133                //Draw a rectangle
    4234                DisplayIO.setCursorPosition(250, 250);
     
    5345                Map<String, Integer> itemCounts = getItemCount(items);
    5446               
     47        }
     48
     49        /**
     50         * @throws InterruptedException
     51         */
     52        public static void drawLine() throws InterruptedException {
     53                //Draw a line
     54                DisplayIO.setCursorPosition(100, 100);
     55                Thread.sleep(1000);
     56                DisplayIO.clickMouse(InputEvent.BUTTON2_MASK);
     57                Thread.sleep(100);
     58                DisplayIO.setCursorPosition(200, 200);
     59                Thread.sleep(100);
     60                DisplayIO.clickMouse(InputEvent.BUTTON2_MASK);
     61                Thread.sleep(100);
    5562        }
    5663
  • trunk/tests/org/expeditee/gui/FreeItemsTest.java

    r240 r310  
    1313        /**
    1414         * Test the picking up and putting down of objects on a frame.
     15         *
    1516         * @throws Exception
    1617         */
     
    1920                DisplayIO.setCurrentFrame(testFrame, true);
    2021
     22                /* Just incase previous tests left something on the cursor clear it now! */
     23                FreeItems.getInstance().clear();
    2124                FrameMouseActions.pickup(testFrame.getTitleItem());
    2225                assertTrue(FreeItems.itemsAttachedToCursor());
Note: See TracChangeset for help on using the changeset viewer.