use of org.jboss.errai.common.client.dom.elemental2.Elemental2DomUtil in project kie-wb-common by kiegroup.
the class ExampleImportPresenterTest method setup.
@Before
public void setup() {
libraryServiceCaller = new CallerMock<>(libraryService);
examplesServiceCaller = new CallerMock<>(examplesService);
tileWidget = spy(new ExampleProjectWidget(mock(ExampleProjectWidget.View.class), exampleProjectOkPresenter, exampleProjectErrorPresenter, branchSelectorPopUpPresenter));
doReturn("space1").when(organizationalUnit).getName();
doReturn(tileWidget).when(tileWidgets).get();
doAnswer(invocationOnMock -> spy(new ExampleProjectWidget(mock(ExampleProjectWidget.View.class), exampleProjectOkPresenter, exampleProjectErrorPresenter, branchSelectorPopUpPresenter))).when(tileWidgets).get();
importPresenter = spy(new ExamplesImportPresenter(view, libraryPlaces, tileWidgets, examplesServiceCaller, mock(WorkspaceProjectContext.class), notificationEvent, projectContextChangeEvent, new Elemental2DomUtil(), mock(TranslationService.class), importProjectsPreferences, libraryServiceCaller));
doReturn(organizationalUnit).when(importPresenter).activeOrganizationalUnit();
}
Aggregations