use of org.xwiki.model.reference.EntityReferenceProvider in project xwiki-platform by xwiki.
the class AbstractEntityJobTest method configure.
@Override
@Before
public void configure() throws Exception {
super.configure();
this.authorization = getMocker().getInstance(AuthorizationManager.class);
this.observationManager = getMocker().getInstance(ObservationManager.class);
EntityReferenceProvider defaultEntityReferenceProvider = getMocker().getInstance(EntityReferenceProvider.class);
when(defaultEntityReferenceProvider.getDefaultReference(EntityType.DOCUMENT)).thenReturn(new EntityReference("WebHome", EntityType.DOCUMENT, null));
}
Aggregations