예제 #1
0
 @Before
 public void setUp() throws Exception {
   Q = new Quoridor();
   quorDriver =
       new JFrameDriver(
           new GesturePerformer(),
           new AWTEventQueueProber(),
           JFrameDriver.named(Quoridor.MAIN_WINDOW_TITLE),
           JFrameDriver.showingOnScreen());
   menuDriver =
       new JFrameDriver(
           new GesturePerformer(),
           new AWTEventQueueProber(),
           JFrameDriver.named(OptionsMenu.OPTIONS_WINDOW_TITLE),
           JFrameDriver.showingOnScreen());
   String buttonName = ("Button1");
   JButtonDriver bDriver = qButton(buttonName);
   bDriver.click();
 }
예제 #2
0
 public AuctionSniperDriver(int timeoutMillis) {
   super(
       new GesturePerformer(),
       JFrameDriver.topLevelFrame(named(Main.MAIN_WINDOW_NAME), showingOnScreen()),
       new AWTEventQueueProber(timeoutMillis, 100));
 }
예제 #3
0
 @After
 public void shutDown() {
   menuDriver.dispose();
   quorDriver.dispose();
 }