use of org.kie.workbench.common.screens.home.model.HomeShortcut in project kie-wb-common by kiegroup.
the class ShortcutPresenterTest method setupWithNoActionPermissionTest.
@Test
public void setupWithNoActionPermissionTest() {
doReturn(false).when(shortcutHelper).authorize(any(HomeShortcut.class));
final HomeShortcut shortcut = ModelUtils.makeShortcut("iconCss", "heading", "subHeadingPrefix", mock(Command.class));
presenter.setup(shortcut);
verify(view, never()).setAction(shortcut.getOnClickCommand());
}
Aggregations