@Test
public void testSetRootItem() throws Exception {
treeItem = mock( IsTreeItem.class );
view = mock( ModuleTreeItemView.class );
ClientFactory clientFactory = mock( ClientFactory.class );
AssetEditorFactory assetEditorFactory = mock( AssetEditorFactory.class );
when(
clientFactory.getAssetEditorFactory()
).thenReturn(
assetEditorFactory
);
PerspectiveFactory perspectiveFactory = mock( PerspectiveFactory.class );
when(
perspectiveFactory.getRegisteredAssetEditorFormats("package")
).thenReturn(
new String[0]
);
NavigationViewFactory navigationViewFactory = mock( NavigationViewFactory.class );
when(
clientFactory.getNavigationViewFactory()
).thenReturn(
navigationViewFactory
);
when(
navigationViewFactory.getModuleTreeItemView()