}
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
);
PackageServiceAsync packageService = mock( PackageServiceAsync.class );
when(
clientFactory.getPackageService()
).thenReturn(
packageService
);
PackagesNewAssetMenuView modulesNewAssetMenuView = mock( PackagesNewAssetMenuView.class );
when(
navigationViewFactory.getPackagesNewAssetMenuView()
).thenReturn(
modulesNewAssetMenuView
);
/*
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 );