PageImpl extends com.adobe.cq.wcm.core.components.internal.models.v1.PageImpl implements Page { @Override public String getCssClassNames() { Set<String> cssClassesSet = componentContext.getCssClassNames(); return StringUtils.join(cssClassesSet, " "); }  @Override @JsonIgnore @Deprecated Map<String, String> getFavicons(); @Override @JsonIgnore String[] getClientLibCategoriesJsBody(); @Override @JsonIgnore String[] getClientLibCategoriesJsHead(); @Override String getAppResourcesPath(); @Override String getCssClassNames(); @NotNull @Override String[] getExportedItemsOrder(); @NotNull @Override Map<String, ? extends ComponentExporter> getExportedItems(); @Nullable @Override NavigationItem getRedirectTarget(); @Override boolean hasCloudconfigSupport(); @Override String getMainContentSelector(); static final String PN_REDIRECT_TARGET; static final String PN_MAIN_CONTENT_SELECTOR_PROP; }
@Test void testGetCssClasses() { Page page = getPageUnderTest(PAGE, CSS_CLASS_NAMES_KEY, new String[]{"class1", "class2"}); String cssClasses = page.getCssClassNames(); assertEquals("class1 class2", cssClasses, "The CSS classes of the page are not expected: " + PAGE); }