|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
junit.extensions.jfcunit.JFCTestCase
junit.extensions.jfcunit.javatest.RobotTest
Title: Test The robot.
Description:
Copyright: Copyright (c) 2003
Company: JFCUnit
Nested Class Summary |
Nested classes inherited from class junit.extensions.jfcunit.JFCTestCase |
|
Field Summary | |
private int |
m_lastx
lastx location of mouse. |
private int |
m_lasty
lasty location of mouse. |
private java.awt.Robot |
m_robot
Robot to be used for test. |
Fields inherited from class junit.extensions.jfcunit.JFCTestCase |
|
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
RobotTest()
Constructor. |
|
RobotTest(java.lang.String name)
Constructor. |
Method Summary | |
static void |
main(java.lang.String[] args)
Run the test. |
void |
setUp()
Setup the test case. |
void |
testRobotClick()
Test the mouse click. |
void |
testRobotKey()
Test sending in keys to the robot. |
void |
testRobotMove()
Test the mouse move of the robot. |
Methods inherited from class junit.extensions.jfcunit.JFCTestCase |
awtSleep, awtSleep, createNoExitSecurityManager, flushAWT, getAssertExit, getError, getHelper, getLockWait, hasError, isAWTRunning, pause, pauseAWT, resetError, resetForcedWait, resetSleepTime, resumeAWT, runBare, runCode, runTest, setAssertExit, setError, setForcedWait, setHelper, setLockWait, setSleepTime, sleep, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.awt.Robot m_robot
private int m_lastx
private int m_lasty
Constructor Detail |
public RobotTest()
public RobotTest(java.lang.String name)
name
- Name of the test case.Method Detail |
public void setUp() throws java.lang.Exception
setUp
in class JFCTestCase
java.lang.Exception
- may be thrown.public static void main(java.lang.String[] args)
args
- arguments to the main method.public void testRobotClick() throws java.lang.Throwable
java.lang.Throwable
- may be thrown.public void testRobotKey() throws java.lang.Throwable
java.lang.Throwable
- may be thrown.public void testRobotMove() throws java.lang.Throwable
java.lang.Throwable
- may be thrown.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |