/*
* Test method for 'org.locationtech.udig.tools.edit.latest.MouseTracker.updateState(MapMouseEvent, EventType)'
*/
@Test
public void testUpdateState() throws Exception {
TestMouseTracker tracker=new TestMouseTracker(new TestHandler() );
MapMouseEvent event=new MapMouseEvent( DISPLAY, 10,15,NONE,BUTTON1, BUTTON1 );
tracker.updateState(event, EventType.MOVED);
assertEquals(Point.valueOf(10,15), tracker.getDragStarted());
event=new MapMouseEvent( DISPLAY, 10,10,NONE,BUTTON1, BUTTON1 );
tracker.updateState(event, EventType.DRAGGED);
assertEquals(Point.valueOf(10,15), tracker.getDragStarted());
}