Search in sources :

Example 1 with ProjectService

use of com.enonic.xp.project.ProjectService in project xp by enonic.

the class ContentResourceTest method getResourceInstance.

@Override
protected Object getResourceInstance() {
    this.contentService = Mockito.mock(ContentService.class);
    this.taskService = Mockito.mock(TaskService.class);
    final ProjectService projectService = Mockito.mock(ProjectService.class);
    final SyncContentService syncContentService = Mockito.mock(SyncContentService.class);
    final ContentResource resource = new ContentResource();
    resource.setContentService(contentService);
    resource.setTaskService(taskService);
    resource.setProjectService(projectService);
    resource.setSyncContentService(syncContentService);
    return resource;
}
Also used : SyncContentService(com.enonic.xp.content.SyncContentService) TaskService(com.enonic.xp.task.TaskService) ProjectService(com.enonic.xp.project.ProjectService) ContentService(com.enonic.xp.content.ContentService) SyncContentService(com.enonic.xp.content.SyncContentService)

Aggregations

ContentService (com.enonic.xp.content.ContentService)1 SyncContentService (com.enonic.xp.content.SyncContentService)1 ProjectService (com.enonic.xp.project.ProjectService)1 TaskService (com.enonic.xp.task.TaskService)1