@Test public void testGetTitle() { final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); final String expectedTitle = "file"; when(includedModel.getName()).thenReturn(expectedTitle); doReturn(includedModel).when(card).getIncludedModel(); final String actualTitle = card.getTitle(); assertEquals(expectedTitle, actualTitle); }
@Override public String getTitle() { return getIncludedModel().getName(); }
BaseCardComponent implements CardComponent { @Override public String getTitle() { return getIncludedModel().getName(); } }
BaseCardComponent implements CardComponent { @Override public String getTitle() { return getIncludedModel().getName(); } BaseCardComponent(final V contentView,
                             final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); }
BaseCardComponent implements CardComponent { @Override public String getTitle() { return getIncludedModel().getName(); } 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 { @Override public String getTitle() { return getIncludedModel().getName(); } 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();  }