PreferencesRootScreen { @OnStartup public void setup() { placeManager.goTo(new DefaultPlaceRequest(PreferencesCentralNavBarScreen.IDENTIFIER), view.getNavbarContainer()); placeManager.goTo(new DefaultPlaceRequest(PreferencesCentralActionsScreen.IDENTIFIER), view.getActionsContainer()); } @Inject  PreferencesRootScreen(final View view,
                                 final PlaceManager placeManager,
                                 final PreferenceFormBeansInfo preferenceFormBeansInfo,
                                 final Event<HierarchyItemFormInitializationEvent> hierarchyItemFormInitializationEvent); @OnStartup void setup(); @OnClose void onClose(); void hierarchyItemSelectedEvent(@Observes HierarchyItemSelectedEvent hierarchyItemSelectedEvent); String getPreferenceFormIdentifier(final String preferenceIdentifier); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView View getView(); static final String IDENTIFIER; }
@Test public void setupTest() { screen.setup(); verify(placeManager).goTo(new DefaultPlaceRequest(PreferencesCentralNavBarScreen.IDENTIFIER), view.getNavbarContainer()); verify(placeManager).goTo(new DefaultPlaceRequest(PreferencesCentralActionsScreen.IDENTIFIER), view.getActionsContainer()); }