ScreenLayoutDragComponent implements /*PerspectiveEditorCoreComponent*/ LayoutDragComponent,
                                                  HasModalConfiguration { Command createCleanupPlaceRequest(DefaultPlaceRequest placeToClose) { return () -> { placeManager.closePlace(placeToClose); }; } @Inject  ScreenLayoutDragComponent(PlaceManager placeManager); @PostConstruct void setup(); @Override String getDragComponentTitle(); @Override String getDragComponentIconClass(); @Override IsWidget getPreviewWidget(RenderingContext ctx); @Override void removeCurrentWidget(RenderingContext ctx); @Override IsWidget getShowWidget(RenderingContext ctx); @Override Modal getConfigurationModal(ModalConfigurationContext ctx); void observeEditComponentEventFromPropertyEditor(@Observes PropertyEditorChangeEvent event); void onNewPluginRegistered(@Observes NewPluginRegistered newPluginRegistered); void onPluginUnregistered(@Observes PluginUnregistered pluginUnregistered); static final String PLACE_NAME_PARAMETER; }
@Test public void createCleanupPlaceRequestTest() { DefaultPlaceRequest dora = new DefaultPlaceRequest("dora"); screenLayoutDragComponent.createCleanupPlaceRequest(dora).execute(); verify(placeManager).closePlace(dora); }