}
private void createPresenter() {
ClientFactory clientFactory = mock( ClientFactory.class );
NavigationViewFactory navigationViewFactory = mock( NavigationViewFactory.class );
when(
clientFactory.getNavigationViewFactory()
).thenReturn(
navigationViewFactory
);
when(
navigationViewFactory.getModulesTreeView()
).thenReturn(
view
);
ModulesTreeItemView knowledgeModulesTreeItemView = mock( ModulesTreeItemView.class );
when(
navigationViewFactory.getModulesTreeItemView()
).thenReturn(
knowledgeModulesTreeItemView
);
ModuleServiceAsync packageService = mock( ModuleServiceAsync.class );
when(
clientFactory.getModuleService()
).thenReturn(
packageService
);
/*
MenuBar rootMenuBar = new MenuBar( true );
when(
modulesNewAssetMenuView.asWidget()
).thenReturn(
rootMenuBar
);*/
GlobalAreaTreeItemView globalAreaTreeItemView = mock( GlobalAreaTreeItemView.class );
when(
navigationViewFactory.getGlobalAreaTreeItemView()
).thenReturn(
globalAreaTreeItemView
);
EventBus eventBus = mock( EventBus.class );