objectdraw
Class VTControllerTester

java.lang.Object
  extended by objectdraw.VTControllerTester

public class VTControllerTester
extends Object

Version:
June 9, 2006
Author:
Roy Patrick Tan

Constructor Summary
VTControllerTester(TestableWindowController controller)
          Create a UI testing robot, given a TestableWindowController.
 
Method Summary
 void actionClick(Location loc)
          Simulates a click on loc.
 void actionMouseMove(Location loc)
          Simulates the mouse moving towards loc.
 void actionMousePress(Location loc)
          Simulates a mouse press on the app.
 void actionMouseRelease()
          Simulates the mouse being released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VTControllerTester

public VTControllerTester(TestableWindowController controller)
Create a UI testing robot, given a TestableWindowController.

Parameters:
controller - the component to be tested.
Method Detail

actionClick

public void actionClick(Location loc)
Simulates a click on loc.

Parameters:
loc - the Location in the canvas where the mouse is clicked.

actionMouseMove

public void actionMouseMove(Location loc)
Simulates the mouse moving towards loc. To get an onMouseDrag event, call actionMouseMove after actionMousePress.

Parameters:
loc - the location the move is moving to.

actionMousePress

public void actionMousePress(Location loc)
Simulates a mouse press on the app.

Parameters:
loc - the location where the mouse is pressed.

actionMouseRelease

public void actionMouseRelease()
Simulates the mouse being released. This assumes that the mouse is released wherever it is located at the moment actionMouseRelease is called.