ExperienceFragmentImpl implements ExperienceFragment { @Override @JsonIgnore public String getName() { return name; }  @Override String getLocalizedFragmentVariationPath(); @Override @JsonIgnore String getName(); @NotNull @Override String getExportedType(); @Nonnull @Override Map<String, ? extends ComponentExporter> getExportedItems(); @Nonnull @Override String[] getExportedItemsOrder(); @Override @JsonProperty("classNames") String getCssClassNames(); @Override @JsonInclude boolean isConfigured(); static final String RESOURCE_TYPE_V1; }
@Test void testValidXFInPageWithoutLocalization() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(NO_LOC_PAGE + "/jcr:content/root/xf-component-1"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf1")); }
@Test void testValidXFInTemplateWithoutLocalization() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-1a", NO_LOC_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf1")); }
@Test void testValidXFInPageWithLocalizationWithSameLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(EN_PAGE + "/jcr:content/root/xf-component-10"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf10")); }
@Test void testValidXFInTemplateWithLocalizationWithSameLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-10a", EN_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf10")); }
@Test void testValidXFInPageWithLocalizationWithDifferentLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(EN_PAGE + "/jcr:content/root/xf-component-11"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf11")); }
@Test void testValidXFInTemplateWithLocalizationWithDifferentLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-11a", EN_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf11a")); }
@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")); }
@Test void testValidXFInTemplateWithLocalizationWithSameCountryLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-20a", US_EN_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf20")); }
@Test void testValidXFInPageWithLocalizationWithDifferentCountryLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(US_EN_PAGE + "/jcr:content/root/xf-component-21"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf21")); }
@Test void testValidXFInTemplateWithLocalizationWithDifferentCountryLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-21a", US_EN_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf21a")); }
@Test void testValidXFInPageWithLocalizationWithSameCountrySiteLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(CH_MYSITE_FR_PAGE + "/jcr:content/root/xf-component-30"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf30")); }
@Test void testValidXFInTemplateWithLocalizationWithSameCountrySiteLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-30a", CH_MYSITE_FR_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf30")); }
@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")); }
@Test void testValidXFInTemplateWithLocalizationWithDifferentCountrySiteLanguage() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-31a", CH_MYSITE_FR_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf31a")); }
@Test void testValidXFInPageWithLocalizationWithSameCountry_Language() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(CH_FR_PAGE + "/jcr:content/root/xf-component-40"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf40")); }
@Test void testValidXFInTemplateWithLocalizationWithSameCountry_Language() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-40a", CH_FR_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf40")); }
@Test void testValidXFInPageWithLocalizationWithDifferentCountry_Language() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(CH_FR_PAGE + "/jcr:content/root/xf-component-41"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf41")); }
@Test void testValidXFInTemplateWithLocalizationWithDifferentCountry_Language() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-41a", CH_FR_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf41a")); }
@Test void testValidXFInPageWithLocalizationWithSameBlueprint() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(BLUEPRINT_PAGE + "/jcr:content/root/xf-component-50"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf50")); }
@Test void testValidXFInTemplateWithLocalizationWithSameBlueprint() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-50a", BLUEPRINT_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf50")); }
@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")); }
@Test void testValidXFInTemplateWithLocalizationWithDifferentBlueprint() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-51a", BLUEPRINT_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf51a")); }
@Test void testValidXFInPageWithLocalizationWithSameLivecopy() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest(LIVECOPY_PAGE + "/jcr:content/root/xf-component-60"); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf60")); }
@Test void testValidXFInTemplateLocalizationWithSameLivecopy() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-60a", LIVECOPY_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf60")); }
@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")); }
@Test void testValidXFInTemplateWithLocalizationWithDifferentLivecopy() { ExperienceFragment experienceFragment = getExperienceFragmentUnderTest( PRODUCT_PAGE_TEMPLATE + "/structure/jcr:content/xf-component-61a", LIVECOPY_PAGE); assertEquals(XF_NAME, experienceFragment.getName()); Utils.testJSONExport(experienceFragment, Utils.getTestExporterJSONPath(TEST_BASE, "xf61a")); }