use of org.kie.workbench.common.dmn.client.editors.types.CanBeClosedByKeyboard in project kie-wb-common by kiegroup.
the class CellEditorControlsViewImplTest method testSetOnClosedByKeyboardCallback.
@Test
public void testSetOnClosedByKeyboardCallback() {
final PopupEditorControls editor = mock(PopupEditorControls.class, withSettings().extraInterfaces(CanBeClosedByKeyboard.class));
view.setOnClosedByKeyboardCallback(editor);
verify((CanBeClosedByKeyboard) editor).setOnClosedByKeyboardCallback(any());
}
use of org.kie.workbench.common.dmn.client.editors.types.CanBeClosedByKeyboard in project kie-wb-common by kiegroup.
the class CellEditorControlsViewImplTest method testRemoveOnClosedByKeyboardCallback.
@Test
public void testRemoveOnClosedByKeyboardCallback() {
final PopupEditorControls editor = mock(PopupEditorControls.class, withSettings().extraInterfaces(CanBeClosedByKeyboard.class));
view.removeOnClosedByKeyboardCallback(editor);
verify((CanBeClosedByKeyboard) editor).setOnClosedByKeyboardCallback(null);
}
Aggregations