@Test public void testRemove() { final DMNCardsGridComponent grid = mock(DMNCardsGridComponent.class); final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); doReturn(includedModel).when(card).getIncludedModel(); doReturn(grid).when(card).getGrid(); card.remove(); verify(includedModel).destroy(); verify(grid).refresh(); verify(refreshDecisionComponentsEvent).fire(any(RefreshDecisionComponents.class)); }
public void remove() { getIncludedModel().destroy(); getGrid().refresh(); refreshDecisionComponents(); }
BaseCardComponent implements CardComponent { public void remove() { getIncludedModel().destroy(); getGrid().refresh(); refreshDecisionComponents(); } }
BaseCardComponent implements CardComponent { public void remove() { getIncludedModel().destroy(); getGrid().refresh(); refreshDecisionComponents(); } BaseCardComponent(final V contentView,
                             final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); }
BaseCardComponent implements CardComponent { public void remove() { getIncludedModel().destroy(); getGrid().refresh(); refreshDecisionComponents(); } BaseCardComponent(final V contentView,
                             final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void init(); void setup(final DMNCardsGridComponent grid,
                      final R includedModel); @Override HasCssName getIcon(); @Override String getTitle(); @Override String getUUID(); @Override HTMLElement getContent(); @Override Function<String, Boolean> onTitleChanged(); void remove(); }
BaseCardComponent implements CardComponent { public void remove() { getIncludedModel().destroy(); getGrid().refresh(); refreshDecisionComponents(); } BaseCardComponent(final V contentView,
                             final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void init(); void setup(final DMNCardsGridComponent grid,
                      final R includedModel); @Override HasCssName getIcon(); @Override String getTitle(); @Override String getUUID(); @Override HTMLElement getContent(); @Override Function<String, Boolean> onTitleChanged(); void remove();  }