use of com.adobe.cq.wcm.core.components.models.Title in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TitleImplTest method testGetLinkFromRedirectChain.
@Test
protected void testGetLinkFromRedirectChain() {
Title title = getTitleUnderTest(TITLE_RESOURCE_TITLE_V2_REDIRECT_CHAIN);
assertValidLink(title.getLink(), "/content/title/redirect/redirect-page-3.html", "Should Redirect to Page 3 (accessibility label)", "Should Redirect to Page 3 (title)");
Utils.testJSONExport(title, Utils.getTestExporterJSONPath(testBase, TITLE_RESOURCE_TITLE_V2_REDIRECT_CHAIN));
}
use of com.adobe.cq.wcm.core.components.models.Title in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TitleImplTest method testGetTitleResourcePageStyleType.
@Test
protected void testGetTitleResourcePageStyleType() {
Title title = getTitleUnderTest(TITLE_NOPROPS, Title.PN_DESIGN_DEFAULT_TYPE, "h2");
assertEquals("h2", title.getType());
Utils.testJSONExport(title, Utils.getTestExporterJSONPath(testBase, TITLE_NOPROPS));
}
Aggregations