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;
}
Aggregations