@Test public void testOnAddContainerPopupCanceled() { List<ContainerConfig> currentElements = new ArrayList<>(); when(dataProvider.getList()).thenReturn(currentElements); int originalSize = currentElements.size(); prepareAndCallPopup(); cancelCommandCaptor.getValue().execute(); assertEquals(originalSize, currentElements.size()); verify(configParamsChangeEvent, never()).fire(any()); verify(contentChangeHandler, never()).onContentChange(); }
private void onContentChange() { configParamsChangeEvent.fire(new ContainerConfigParamsChangeEvent(new ArrayList<>(dataProvider.getList()))); fireChangeHandlers(); }
ContainerConfigParamsPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { private void onContentChange() { configParamsChangeEvent.fire(new ContainerConfigParamsChangeEvent(new ArrayList<>(dataProvider.getList()))); fireChangeHandlers(); } }
ContainerConfigParamsPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { private void onContentChange() { configParamsChangeEvent.fire(new ContainerConfigParamsChangeEvent(new ArrayList<>(dataProvider.getList()))); fireChangeHandlers(); } @Inject  ContainerConfigParamsPresenter(final View view,
                                          final ContainerConfigPopup containerConfigPopup,
                                          final Event<ContainerConfigParamsChangeEvent> configParamsChangeEvent,
                                          final TranslationService translationService); }
ContainerConfigParamsPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { private void onContentChange() { configParamsChangeEvent.fire(new ContainerConfigParamsChangeEvent(new ArrayList<>(dataProvider.getList()))); fireChangeHandlers(); } @Inject  ContainerConfigParamsPresenter(final View view,
                                          final ContainerConfigPopup containerConfigPopup,
                                          final Event<ContainerConfigParamsChangeEvent> configParamsChangeEvent,
                                          final TranslationService translationService); @PostConstruct void init(); @Override IsElement getView(); @Override Map<String, String> buildParams(); @Override void initialise(); @Override void prepareView(); @Override void clear(); @Override void isComplete(final Callback<Boolean> callback); @Override String getWizardTitle(); }
ContainerConfigParamsPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { private void onContentChange() { configParamsChangeEvent.fire(new ContainerConfigParamsChangeEvent(new ArrayList<>(dataProvider.getList()))); fireChangeHandlers(); } @Inject  ContainerConfigParamsPresenter(final View view,
                                          final ContainerConfigPopup containerConfigPopup,
                                          final Event<ContainerConfigParamsChangeEvent> configParamsChangeEvent,
                                          final TranslationService translationService); @PostConstruct void init(); @Override IsElement getView(); @Override Map<String, String> buildParams(); @Override void initialise(); @Override void prepareView(); @Override void clear(); @Override void isComplete(final Callback<Boolean> callback); @Override String getWizardTitle();  }