Search in sources :

Example 1 with BooleanMenuItem

use of com.thecoderscorner.menu.domain.BooleanMenuItem in project tcMenu by davetcc.

the class UIBooleanMenuItemTest method captureTheLatestBoolean.

private BooleanMenuItem captureTheLatestBoolean() {
    ArgumentCaptor<MenuItem> captor = ArgumentCaptor.forClass(MenuItem.class);
    Mockito.verify(mockedConsumer, Mockito.atLeastOnce()).accept(any(), captor.capture());
    BooleanMenuItem boolItem = (BooleanMenuItem) captor.getValue();
    return boolItem;
}
Also used : UIBooleanMenuItem(com.thecoderscorner.menu.editorui.uimodel.UIBooleanMenuItem) BooleanMenuItem(com.thecoderscorner.menu.domain.BooleanMenuItem) MenuItem(com.thecoderscorner.menu.domain.MenuItem) ScrollChoiceMenuItem(com.thecoderscorner.menu.domain.ScrollChoiceMenuItem) UIBooleanMenuItem(com.thecoderscorner.menu.editorui.uimodel.UIBooleanMenuItem) UIMenuItem(com.thecoderscorner.menu.editorui.uimodel.UIMenuItem) BooleanMenuItem(com.thecoderscorner.menu.domain.BooleanMenuItem)

Aggregations

BooleanMenuItem (com.thecoderscorner.menu.domain.BooleanMenuItem)1 MenuItem (com.thecoderscorner.menu.domain.MenuItem)1 ScrollChoiceMenuItem (com.thecoderscorner.menu.domain.ScrollChoiceMenuItem)1 UIBooleanMenuItem (com.thecoderscorner.menu.editorui.uimodel.UIBooleanMenuItem)1 UIMenuItem (com.thecoderscorner.menu.editorui.uimodel.UIMenuItem)1