RestrictedMousePanMediator extends AbstractMediator { protected void setCursor(final Style.Cursor cursor) { getLayerViewport().getElement().getStyle().setCursor(cursor); } RestrictedMousePanMediator(final GridLayer gridLayer); protected  RestrictedMousePanMediator(); boolean isDragging(); TransformMediator getTransformMediator(); void setTransformMediator(final TransformMediator transformMediator); @Override void cancel(); @Override boolean handleEvent(final GwtEvent<?> event);  }
@Test public void testSetCursor() { final Viewport viewport = mock(Viewport.class); final DivElement divElement = mock(DivElement.class); final Style.Cursor cursor = mock(Style.Cursor.class); final Style style = mock(Style.class); doReturn(style).when(divElement).getStyle(); doReturn(divElement).when(viewport).getElement(); doReturn(viewport).when(mediator).getLayerViewport(); mediator.setCursor(cursor); verify(style).setCursor(cursor); }