@Override //When entering a DecoratedWorkbenchPanel show the Compass public void onEnter(DragContext context) { compass.onEnter(context); }
@Test public void compassDelegationTest() { CompassWidget compass = compassDropController.compass; DragContext dragContext = mock(DragContext.class); compassDropController.onEnter(dragContext); verify(compass).onEnter(dragContext); compassDropController.onLeave(dragContext); verify(compass).onLeave(dragContext); compassDropController.onMove(dragContext); verify(compass).onMove(dragContext); }
@Test public void compassDelegationTest() { CompassWidget compass = compassDropController.compass; DragContext dragContext = mock(DragContext.class); compassDropController.onEnter(dragContext); verify(compass).onEnter(dragContext); compassDropController.onLeave(dragContext); verify(compass).onLeave(dragContext); compassDropController.onMove(dragContext); verify(compass).onMove(dragContext); }