use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ExperienceFragmentImplTest method testUndefinedXFInTemplateWithLocalizationWithDifferentCountryLanguage.
/**
* Site with country-language localization
* XF component is defined in the template
* fragmentVariationPath is undefined
*/
@Test
void testUndefinedXFInTemplateWithLocalizationWithDifferentCountryLanguage() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-22a", US_EN_PAGE);
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf22a"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ExperienceFragmentImplTest method testUndefinedXFInTemplateWithLocalization.
/**
* Site with language localization
* XF component is defined in the template
* fragmentVariationPath is undefined
*/
@Test
void testUndefinedXFInTemplateWithLocalization() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-12a", EN_PAGE);
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf12a"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ExperienceFragmentImplTest method testValidXFInPageWithLocalizationWithSameCountryLanguage.
/* ------------------------------- Tests for a site with country/language localization (us/en) ----------------- */
/**
* Site with country-language localization
* XF component is defined in the page
* XF component points to the same country-language branch as the page
*/
@Test
void testValidXFInPageWithLocalizationWithSameCountryLanguage() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(US_EN_PAGE + "/jcr:content/root/xf-component-20");
assertEquals(XF_NAME, experienceFragment.getName());
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf20"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ExperienceFragmentImplTest method testValidXFInPageWithLocalizationWithDifferentBlueprint.
/**
* Site with region localization (current page is a blueprint)
* XF component is defined in the page
* XF component points to a different region branch as the page
*/
@Test
void testValidXFInPageWithLocalizationWithDifferentBlueprint() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(BLUEPRINT_PAGE + "/jcr:content/root/xf-component-51");
assertEquals(XF_NAME, experienceFragment.getName());
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf51"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ExperienceFragmentImplTest method testUndefinedXFInPageWithLocalizationWithDifferentCountry_Language.
/**
* Site with country_language localization
* XF component is defined in the page
* fragmentVariationPath is undefined
*/
@Test
void testUndefinedXFInPageWithLocalizationWithDifferentCountry_Language() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(CH_FR_PAGE + "/jcr:content/root/xf-component-42");
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf42"));
}
Aggregations