ScreenLayoutDragComponent implements /*PerspectiveEditorCoreComponent*/ LayoutDragComponent,
                                                  HasModalConfiguration { DefaultPlaceRequest buildPlaceRequest(Map<String, String> properties) { String placeName = properties.get(PLACE_NAME_PARAMETER); if (placeName == null) { return null; } DefaultPlaceRequest place = new DefaultPlaceRequest(placeName, properties, false); return place; } @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 buildPlaceRequestTest() { Map<String, String> properties = new HashMap<>(); properties.put(ScreenLayoutDragComponent.PLACE_NAME_PARAMETER, "dora"); properties.put("dora1", "dora1"); DefaultPlaceRequest defaultPlaceRequest = screenLayoutDragComponent.buildPlaceRequest(properties); assertEquals("dora", defaultPlaceRequest.getIdentifier()); assertEquals(2, defaultPlaceRequest.getParameters().size()); }