use of com.enonic.xp.site.CreateSiteParams in project xp by enonic.
the class ContentServiceImplTest_create method create_site.
@Test
public void create_site() throws Exception {
final CreateSiteParams createSiteParams = new CreateSiteParams();
createSiteParams.parent(ContentPath.ROOT).displayName("My site").description("This is my site").siteConfigs(SiteConfigs.empty());
final Content content = this.contentService.create(createSiteParams);
assertNotNull(content.getName());
assertNotNull(content.getCreatedTime());
assertNotNull(content.getCreator());
assertNotNull(content.getModifiedTime());
assertNotNull(content.getModifier());
}
use of com.enonic.xp.site.CreateSiteParams in project xp by enonic.
the class ContentServiceImplTest_getNearestSite method createSite.
private Content createSite() {
final CreateSiteParams createSiteParams = new CreateSiteParams();
createSiteParams.parent(ContentPath.ROOT).displayName("My mock site").description("This is my mock site").siteConfigs(SiteConfigs.empty());
return this.contentService.create(createSiteParams);
}
Aggregations