Search in sources :

Example 1 with Caller

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);
}
Also used : Caller(org.jboss.errai.common.client.api.Caller) Command(org.uberfire.mvp.Command) Test(org.junit.Test)

Aggregations

Caller (org.jboss.errai.common.client.api.Caller)1 Test (org.junit.Test)1 Command (org.uberfire.mvp.Command)1