use of com.adobe.cq.wcm.core.components.models.Teaser in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TeaserImplTest method testImageFromPage_withCta.
@Test
protected void testImageFromPage_withCta() {
Teaser teaser = getTeaserUnderTest(TEASER_23);
Utils.testJSONExport(teaser, Utils.getTestExporterJSONPath(testBase, "teaser23"));
}
use of com.adobe.cq.wcm.core.components.models.Teaser in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TeaserImplTest method testInheritedPageImage_fromTemplate_noLink.
@Test
protected void testInheritedPageImage_fromTemplate_noLink() {
Teaser teaser = getTeaserUnderTest(TEMPLATE_TEASER_1);
Utils.testJSONExport(teaser, Utils.getTestExporterJSONPath(testBase, "template_teaser1"));
}
use of com.adobe.cq.wcm.core.components.models.Teaser in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TeaserImplTest method testTeaserWithExternalLinkFromAction.
@Test
@Override
protected void testTeaserWithExternalLinkFromAction() {
Teaser teaser = getTeaserUnderTest(TEASER_7);
assertEquals("http://www.adobe.com", teaser.getActions().get(0).getURL());
}
use of com.adobe.cq.wcm.core.components.models.Teaser in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TeaserImplTest method testTeaserWithTitleAndDescriptionFromCurrentPage.
@Test
protected void testTeaserWithTitleAndDescriptionFromCurrentPage() {
Teaser teaser = getTeaserUnderTest(TEASER_25);
assertEquals("Teasers Test", teaser.getTitle());
// < and > are expected escaped, because the page properties provide only a plain text field for the page description
assertEquals("Teasers description from <page properties>", teaser.getDescription());
Utils.testJSONExport(teaser, Utils.getTestExporterJSONPath(testBase, "teaser25"));
}
use of com.adobe.cq.wcm.core.components.models.Teaser in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TeaserImplTest method testInheritedPageImage_fromTemplate_withCTAs.
@Test
protected void testInheritedPageImage_fromTemplate_withCTAs() {
Teaser teaser = getTeaserUnderTest(TEMPLATE_TEASER_3);
Utils.testJSONExport(teaser, Utils.getTestExporterJSONPath(testBase, "template_teaser3"));
}
Aggregations