@Test public void testRefreshView() { final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); final String path = "/bla/bla/bla/111111111111111222222222222222333333333333333444444444444444/file.dmn"; when(includedModel.getNamespace()).thenReturn(path); doReturn(includedModel).when(card).getIncludedModel(); card.refreshView(); verify(cardView).setPath("...111111222222222222222333333333333333444444444444444/file.dmn"); }
protected void refreshView() { contentView.setPath(getTruncatedSubTitle()); }
BaseCardComponent implements CardComponent { protected void refreshView() { contentView.setPath(getTruncatedSubTitle()); } }
BaseCardComponent implements CardComponent { protected void refreshView() { contentView.setPath(getTruncatedSubTitle()); } BaseCardComponent(final V contentView,
                             final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); }
BaseCardComponent implements CardComponent { protected void refreshView() { contentView.setPath(getTruncatedSubTitle()); } 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 { protected void refreshView() { contentView.setPath(getTruncatedSubTitle()); } 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();  }