@Test void testOtherParentParsysResource() { context.create().resource("/apps/" + RESOURCE_TYPE_SAMPLE); parsysResource = context.create().resource(page.getContentResource().getPath() + "/parsysOther"); par1Resource = context.create().resource(parsysResource.getPath() + "/par1"); context.request().setAttribute(RA_PARSYS_PARENT_RESOURCE, parsysResource); WCMMode.EDIT.toRequest(context.request()); Parsys parsys = AdaptTo.notNull(context.request(), Parsys.class); List<Item> items = parsys.getItems(); assertEquals(2, items.size()); Item item1 = items.get(0); assertEquals(par1Resource.getPath(), item1.getResourcePath()); assertNull(item1.getResourceType()); assertEquals(SECTION_DEFAULT_CLASS_NAME, item1.getCssClassName()); assertFalse(item1.isNewArea()); Item item2 = items.get(1); assertEquals(NEWAREA_RESOURCE_PATH, item2.getResourcePath()); assertEquals(FALLBACK_NEWAREA_RESOURCE_TYPE, item2.getResourceType()); assertEquals(NEWAREA_CSS_CLASS_NAME + " " + SECTION_DEFAULT_CLASS_NAME, item2.getCssClassName()); assertTrue(item2.isNewArea()); }
@JsonIgnore public List<Item> getItems() { return items; }
Parsys implements ContainerExporter { @JsonIgnore public List<Item> getItems() { return items; } }
Parsys implements ContainerExporter { @JsonIgnore public List<Item> getItems() { return items; }  }
Parsys implements ContainerExporter { @JsonIgnore public List<Item> getItems() { return items; }  @JsonIgnore List<Item> getItems(); @JsonIgnore String getWrapperElementName(); @JsonIgnore String getWrapperCss(); @JsonIgnore boolean isWrapperElement(); @Override @NotNull String getExportedType(); @Override @NotNull Map<String, ? extends ComponentExporter> getExportedItems(); @Override String @NotNull [] getExportedItemsOrder(); }
Parsys implements ContainerExporter { @JsonIgnore public List<Item> getItems() { return items; }  @JsonIgnore List<Item> getItems(); @JsonIgnore String getWrapperElementName(); @JsonIgnore String getWrapperCss(); @JsonIgnore boolean isWrapperElement(); @Override @NotNull String getExportedType(); @Override @NotNull Map<String, ? extends ComponentExporter> getExportedItems(); @Override String @NotNull [] getExportedItemsOrder();  }