use of org.eclipse.swt.events.ControlListener in project org.eclipse.rap by eclipse-rap.
the class TypedListener_Test method testHandleEventForControlMovedEvent.
@Test
public void testHandleEventForControlMovedEvent() {
ControlListener controlListener = mock(ControlListener.class);
TypedListener typedListener = new TypedListener(controlListener);
Event event = createEvent(SWT.Move);
typedListener.handleEvent(event);
verify(controlListener).controlMoved(any(ControlEvent.class));
}
use of org.eclipse.swt.events.ControlListener in project org.eclipse.rap by eclipse-rap.
the class TypedListener_Test method testHandleEventForControlResizedEvent.
@Test
public void testHandleEventForControlResizedEvent() {
ControlListener controlListener = mock(ControlListener.class);
TypedListener typedListener = new TypedListener(controlListener);
Event event = createEvent(SWT.Resize);
typedListener.handleEvent(event);
verify(controlListener).controlResized(any(ControlEvent.class));
}
Aggregations