DisplayerDragComponent implements LayoutDragComponent, HasModalConfiguration { @Override public Modal getConfigurationModal( final ModalConfigurationContext ctx ) { return buildEditorPopUp(ctx); } @Inject  DisplayerDragComponent(SyncBeanManager beanManager,
                                  DisplayerViewer viewer,
                                  PlaceManager placeManager,
                                  PerspectiveCoordinator perspectiveCoordinator); DisplayerType getDisplayerType(); DisplayerSubType getDisplayerSubType(); @Override String getDragComponentTitle(); @Override IsWidget getPreviewWidget( final RenderingContext ctx ); @Override IsWidget getShowWidget( final RenderingContext ctx ); @Override Modal getConfigurationModal( final ModalConfigurationContext ctx );  }
@Test public void testDoNotSetDisplayerType() { when(configurationProperties.get("json")).thenReturn(""); lineChartDragComponent.getConfigurationModal(configurationContext); verify(editorPopup, never()).setDisplayerType(any()); verify(editorPopup, never()).setDisplayerSubType(any()); }