junit.extensions.jfcunit.javatest
Class RobotTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byjunit.extensions.jfcunit.JFCTestCase
              extended byjunit.extensions.jfcunit.javatest.RobotTest
All Implemented Interfaces:
junit.framework.Test

public class RobotTest
extends JFCTestCase

Title: Test The robot.

Description:

Copyright: Copyright (c) 2003

Company: JFCUnit

Version:
1.0
Author:
Kevin Wilson

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

m_robot

private java.awt.Robot m_robot
Robot to be used for test.


m_lastx

private int m_lastx
lastx location of mouse.


m_lasty

private int m_lasty
lasty location of mouse.

Constructor Detail

RobotTest

public RobotTest()
Constructor.


RobotTest

public RobotTest(java.lang.String name)
Constructor.

Parameters:
name - Name of the test case.
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Setup the test case.

Overrides:
setUp in class JFCTestCase
Throws:
java.lang.Exception - may be thrown.

main

public static void main(java.lang.String[] args)
Run the test.

Parameters:
args - arguments to the main method.

testRobotClick

public void testRobotClick()
                    throws java.lang.Throwable
Test the mouse click. Not implemented.

Throws:
java.lang.Throwable - may be thrown.

testRobotKey

public void testRobotKey()
                  throws java.lang.Throwable
Test sending in keys to the robot. Not implemented.

Throws:
java.lang.Throwable - may be thrown.

testRobotMove

public void testRobotMove()
                   throws java.lang.Throwable
Test the mouse move of the robot.

Throws:
java.lang.Throwable - may be thrown.


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999