PreferencesRootScreen { @OnClose public void onClose() { placeManager.closePlace(PreferencesCentralNavBarScreen.IDENTIFIER); placeManager.closePlace(PreferencesCentralActionsScreen.IDENTIFIER); } @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 onCloseTest() { screen.onClose(); verify(placeManager).closePlace(PreferencesCentralNavBarScreen.IDENTIFIER); verify(placeManager).closePlace(PreferencesCentralActionsScreen.IDENTIFIER); }