ContentManagerPerspective { @AfterInitialization public void init() { perspectivesExplorerDock = new UberfireDock(UberfireDockPosition.WEST, IconType.FILE_TEXT_O.toString(), new DefaultPlaceRequest(PerspectivesExplorerScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(330) .withLabel(i18n.capitalizeFirst(i18n.getPerspectivesResourceName())); navigationExplorerDock = new UberfireDock(UberfireDockPosition.WEST, IconType.NAVICON.toString(), new DefaultPlaceRequest(NavigationExplorerScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(330) .withLabel(ContentManagerConstants.INSTANCE.contentExplorerNavigation()); componentPaletteDock = new UberfireDock(UberfireDockPosition.WEST, IconType.CUBES.toString(), new DefaultPlaceRequest(LayoutComponentPaletteScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(330) .withLabel(ContentManagerConstants.INSTANCE.componentPalette()); propertiesEditorDock = new UberfireDock(UberfireDockPosition.EAST, IconType.PENCIL.toString(), new DefaultPlaceRequest(LayoutEditorPropertiesScreen.SCREEN_ID), PERSPECTIVE_ID).withSize(300) .withLabel(ContentManagerConstants.INSTANCE.propertiesEditor()); uberfireDocks.add(perspectivesExplorerDock); uberfireDocks.add(navigationExplorerDock); }  @Perspective PerspectiveDefinition getPerspective(); @AfterInitialization void init(); @OnOpen void onOpen(); void onPerspectiveEditorFocus(@Observes PerspectiveEditorFocusEvent event); void onPerspectiveEditorHidden(@Observes PlaceHiddenEvent event); static final String PERSPECTIVE_ID; }
@Test public void testInit() { verify(uberfireDocks).add(perspective.perspectivesExplorerDock); verify(uberfireDocks).add(perspective.navigationExplorerDock); verify(uberfireDocks).remove(perspective.componentPaletteDock); verify(uberfireDocks).open(perspective.perspectivesExplorerDock); verify(uberfireDocks).show(UberfireDockPosition.WEST, ContentManagerPerspective.PERSPECTIVE_ID); }