TeaserImpl extends AbstractImageDelegatingModel implements Teaser { @Override public String getTitleType() { Utils.Heading heading = Utils.Heading.getHeading(titleType); if (heading != null) { return heading.getElement(); } return null; }  @Override boolean isActionsEnabled(); @Override List<ListItem> getActions(); @Override String getLinkURL(); @JsonProperty(value = "imagePath") @Nullable String getImagePath(); @Override boolean isImageLinkHidden(); @Override String getTitle(); @Override String getPretitle(); @Override boolean isTitleLinkHidden(); @Override String getDescription(); @Override String getTitleType(); @NotNull @Override String getExportedType(); @Override String getDataLayerTitle(); @Override String getDataLayerLinkUrl(); @Override String getDataLayerDescription(); final static String RESOURCE_TYPE; }
@Test void testTeaserWithTitleType() { Teaser teaser = getTeaserUnderTest(TEASER_1, Teaser.PN_TITLE_TYPE, "h5"); assertEquals("h5", teaser.getTitleType(), "Expected title type is not correct"); Utils.testJSONExport(teaser, Utils.getTestExporterJSONPath(TEST_BASE, "teaser2")); }
@Test void testTeaserWithDefaultTitleType() { Teaser teaser = getTeaserUnderTest(TEASER_1); assertNull(teaser.getTitleType(), "Expected the default title type is not correct"); Utils.testJSONExport(teaser, Utils.getTestExporterJSONPath(TEST_BASE, "teaser1")); }