< prev index next >

core/JemmyAWTInput/test/org/jemmy/input/awt/RobotDriver2Test.java

Print this page




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation. Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package org.jemmy.input;
  26 
  27 
  28 import java.awt.AWTException;
  29 import java.awt.BorderLayout;
  30 import java.awt.Button;
  31 import java.awt.EventQueue;
  32 import java.awt.Frame;
  33 import java.awt.Robot;
  34 import java.awt.event.InputEvent;
  35 import java.awt.event.KeyAdapter;
  36 import java.awt.event.KeyEvent;
  37 import java.awt.event.MouseAdapter;
  38 import java.awt.event.MouseEvent;
  39 import java.io.File;
  40 import java.lang.reflect.InvocationTargetException;
  41 import java.util.HashMap;
  42 import java.util.HashSet;
  43 import java.util.Queue;
  44 import java.util.Random;
  45 import java.util.concurrent.ConcurrentLinkedQueue;
  46 import org.jemmy.Point;
  47 import org.jemmy.control.Wrap;
  48 import org.jemmy.env.Environment;
  49 import org.jemmy.env.Timeout;
  50 import org.jemmy.image.AWTImage;



  51 import org.jemmy.interfaces.Keyboard.KeyboardButton;
  52 import org.jemmy.interfaces.Modifier;
  53 import org.jemmy.interfaces.Mouse.MouseButton;
  54 import org.jemmy.interfaces.Mouse.MouseButtons;
  55 import org.jemmy.timing.State;
  56 import org.jemmy.timing.Waiter;
  57 import org.testng.annotations.AfterClass;
  58 import org.testng.annotations.AfterMethod;
  59 import org.testng.annotations.BeforeClass;
  60 import org.testng.annotations.BeforeMethod;
  61 import org.testng.annotations.Test;
  62 
  63 
  64 /**
  65  *
  66  * @author Alexander Kouznetsov <mrkam@mail.ru>
  67  */
  68 public class RobotDriver2Test {
  69 
  70     final static Timeout TIMEOUT = new Timeout("Wait for state to be reached", 10000);




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation. Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package org.jemmy.input.awt;
  26 
  27 
  28 import java.awt.AWTException;
  29 import java.awt.BorderLayout;
  30 import java.awt.Button;
  31 import java.awt.EventQueue;
  32 import java.awt.Frame;
  33 import java.awt.Robot;
  34 import java.awt.event.InputEvent;
  35 import java.awt.event.KeyAdapter;
  36 import java.awt.event.KeyEvent;
  37 import java.awt.event.MouseAdapter;
  38 import java.awt.event.MouseEvent;
  39 import java.io.File;
  40 import java.lang.reflect.InvocationTargetException;
  41 import java.util.HashMap;
  42 import java.util.HashSet;
  43 import java.util.Queue;
  44 import java.util.Random;
  45 import java.util.concurrent.ConcurrentLinkedQueue;
  46 import org.jemmy.Point;
  47 import org.jemmy.control.Wrap;
  48 import org.jemmy.env.Environment;
  49 import org.jemmy.env.Timeout;
  50 import org.jemmy.image.awt.AWTImage;
  51 import org.jemmy.input.awt.AWTMap;
  52 import org.jemmy.input.awt.RobotDriver;
  53 import org.jemmy.input.awt.RobotExecutor;
  54 import org.jemmy.interfaces.Keyboard.KeyboardButton;
  55 import org.jemmy.interfaces.Modifier;
  56 import org.jemmy.interfaces.Mouse.MouseButton;
  57 import org.jemmy.interfaces.Mouse.MouseButtons;
  58 import org.jemmy.timing.State;
  59 import org.jemmy.timing.Waiter;
  60 import org.testng.annotations.AfterClass;
  61 import org.testng.annotations.AfterMethod;
  62 import org.testng.annotations.BeforeClass;
  63 import org.testng.annotations.BeforeMethod;
  64 import org.testng.annotations.Test;
  65 
  66 
  67 /**
  68  *
  69  * @author Alexander Kouznetsov <mrkam@mail.ru>
  70  */
  71 public class RobotDriver2Test {
  72 
  73     final static Timeout TIMEOUT = new Timeout("Wait for state to be reached", 10000);


< prev index next >