< prev index next >

core/JemmyAWTInput/test/org/jemmy/input/awt/SmoothMoveTest.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.KeyAdapter;
  35 import java.awt.event.KeyEvent;
  36 import java.awt.event.MouseAdapter;
  37 import java.awt.event.MouseEvent;
  38 import java.io.File;
  39 import java.lang.reflect.InvocationTargetException;
  40 import org.jemmy.Point;
  41 import org.jemmy.control.Wrap;
  42 import org.jemmy.env.Environment;
  43 import org.jemmy.env.Timeout;
  44 import org.jemmy.image.AWTImage;



  45 import org.jemmy.timing.State;
  46 import org.jemmy.timing.Waiter;
  47 import org.testng.annotations.AfterClass;
  48 import org.testng.annotations.AfterMethod;
  49 import org.testng.annotations.BeforeClass;
  50 import org.testng.annotations.BeforeMethod;
  51 import org.testng.annotations.Test;
  52 
  53 import static org.testng.Assert.assertTrue;
  54 
  55 
  56 /**
  57  *
  58  * @author Alexander Kouznetsov <mrkam@mail.ru>
  59  */
  60 public class SmoothMoveTest {
  61 
  62     final static Timeout TIMEOUT = new Timeout("Wait for state to be reached", 10000);
  63     final static Timeout DELTA_TIMEOUT = new Timeout("Delta timeout of wait for state to be reached", 1000);
  64 




   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.KeyAdapter;
  35 import java.awt.event.KeyEvent;
  36 import java.awt.event.MouseAdapter;
  37 import java.awt.event.MouseEvent;
  38 import java.io.File;
  39 import java.lang.reflect.InvocationTargetException;
  40 import org.jemmy.Point;
  41 import org.jemmy.control.Wrap;
  42 import org.jemmy.env.Environment;
  43 import org.jemmy.env.Timeout;
  44 import org.jemmy.image.awt.AWTImage;
  45 import org.jemmy.input.awt.AWTRobotInputFactory;
  46 import org.jemmy.input.awt.RobotDriver;
  47 import org.jemmy.input.awt.RobotExecutor;
  48 import org.jemmy.timing.State;
  49 import org.jemmy.timing.Waiter;
  50 import org.testng.annotations.AfterClass;
  51 import org.testng.annotations.AfterMethod;
  52 import org.testng.annotations.BeforeClass;
  53 import org.testng.annotations.BeforeMethod;
  54 import org.testng.annotations.Test;
  55 
  56 import static org.testng.Assert.assertTrue;
  57 
  58 
  59 /**
  60  *
  61  * @author Alexander Kouznetsov <mrkam@mail.ru>
  62  */
  63 public class SmoothMoveTest {
  64 
  65     final static Timeout TIMEOUT = new Timeout("Wait for state to be reached", 10000);
  66     final static Timeout DELTA_TIMEOUT = new Timeout("Delta timeout of wait for state to be reached", 1000);
  67 


< prev index next >