use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by adobe.
the class ExperienceFragmentImplTest method testUndefinedXFInPageWithLocalizationWithDifferentCountrySiteLanguage.
/**
* Site with country-language localization (optional): eu/mysite/en
* XF component is defined in the page
* fragmentVariationPath is undefined
*/
@Test
void testUndefinedXFInPageWithLocalizationWithDifferentCountrySiteLanguage() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(CH_MYSITE_FR_PAGE + "/jcr:content/root/xf-component-32");
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf32"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by adobe.
the class ExperienceFragmentImplTest method testValidXFInPageWithLocalizationWithDifferentCountrySiteLanguage.
/**
* Site with country-language localization (optional): eu/mysite/en
* XF component is defined in the page
* XF component points to a different country-language branch as the page
*/
@Test
void testValidXFInPageWithLocalizationWithDifferentCountrySiteLanguage() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(CH_MYSITE_FR_PAGE + "/jcr:content/root/xf-component-31");
assertEquals(XF_NAME, experienceFragment.getName());
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf31"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by adobe.
the class ExperienceFragmentImplTest method testEmptyXFInPageWithoutLocalization.
/**
* No localization structure
* XF component is defined in the page
* fragmentVariationPath is empty
*/
@Test
void testEmptyXFInPageWithoutLocalization() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(NO_LOC_PAGE + "/jcr:content/root/xf-component-3");
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf3"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by adobe.
the class ExperienceFragmentImplTest method testEmptyXFInTemplateWithoutLocalization.
/**
* No localization structure
* XF component is defined in the template
* fragmentVariationPath is empty
*/
@Test
void testEmptyXFInTemplateWithoutLocalization() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-3a", NO_LOC_PAGE);
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf3a"));
}
use of com.adobe.cq.wcm.core.components.models.ExperienceFragment in project aem-core-wcm-components by adobe.
the class ExperienceFragmentImplTest method testValidXFInPageWithLocalizationWithDifferentLivecopy.
/**
* Site with region localization (current page is a livecopy)
* XF component is defined in the page
* XF component points to a different region branch as the page
*/
@Test
void testValidXFInPageWithLocalizationWithDifferentLivecopy() {
ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(LIVECOPY_PAGE + "/jcr:content/root/xf-component-61");
assertEquals(XF_NAME, experienceFragment.getName());
Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf61"));
}
Aggregations