use of org.jboss.errai.common.client.api.Caller in project kie-wb-common by kiegroup.
the class KieEditorTest method testAddRenameWhenSaveAndRenameIsEnabled.
@Test
public void testAddRenameWhenSaveAndRenameIsEnabled() {
final Caller saveAndRenameCaller = mock(Caller.class);
final Command command = mock(Command.class);
doReturn(saveAndRenameCaller).when(presenter).getSaveAndRenameServiceCaller();
doReturn(command).when(presenter).getSaveAndRename();
presenter.addRename(fileMenuBuilder);
verify(fileMenuBuilder).addRename(command);
}