Search in sources :

Example 11 with LayoutDescriptorService

use of com.enonic.xp.region.LayoutDescriptorService in project xp by enonic.

the class ContentDataSerializerTest method createContentDataSerializer.

private ContentDataSerializer createContentDataSerializer() {
    final PageDescriptorService pageDescriptorService = Mockito.mock(PageDescriptorService.class);
    final PartDescriptorService partDescriptorService = Mockito.mock(PartDescriptorService.class);
    final LayoutDescriptorService layoutDescriptorService = Mockito.mock(LayoutDescriptorService.class);
    return ContentDataSerializer.create().partDescriptorService(partDescriptorService).pageDescriptorService(pageDescriptorService).layoutDescriptorService(layoutDescriptorService).build();
}
Also used : PartDescriptorService(com.enonic.xp.region.PartDescriptorService) PageDescriptorService(com.enonic.xp.page.PageDescriptorService) LayoutDescriptorService(com.enonic.xp.region.LayoutDescriptorService)

Aggregations

LayoutDescriptorService (com.enonic.xp.region.LayoutDescriptorService)11 PageDescriptorService (com.enonic.xp.page.PageDescriptorService)9 PartDescriptorService (com.enonic.xp.region.PartDescriptorService)9 XDataService (com.enonic.xp.schema.xdata.XDataService)5 Content (com.enonic.xp.content.Content)4 BeforeEach (org.junit.jupiter.api.BeforeEach)4 ContentDataSerializer (com.enonic.xp.core.impl.content.serializer.ContentDataSerializer)3 PropertyTree (com.enonic.xp.data.PropertyTree)3 ContentType (com.enonic.xp.schema.content.ContentType)3 ContentTypeName (com.enonic.xp.schema.content.ContentTypeName)3 ContentTypeService (com.enonic.xp.schema.content.ContentTypeService)3 GetContentTypeParams (com.enonic.xp.schema.content.GetContentTypeParams)3 CreateAttachment (com.enonic.xp.attachment.CreateAttachment)2 CreateAttachments (com.enonic.xp.attachment.CreateAttachments)2 AuditLogService (com.enonic.xp.audit.AuditLogService)2 ContentConstants (com.enonic.xp.content.ContentConstants)2 ContentInheritType (com.enonic.xp.content.ContentInheritType)2 ContentPath (com.enonic.xp.content.ContentPath)2 ContentPublishInfo (com.enonic.xp.content.ContentPublishInfo)2 CreateContentParams (com.enonic.xp.content.CreateContentParams)2