use of org.xwiki.rendering.configuration.RenderingConfiguration in project xwiki-platform by xwiki.
the class XWikiLinkLabelGeneratorTest method setUp.
@Before
public void setUp() throws Exception {
RenderingConfiguration configuration = this.mocker.getInstance(RenderingConfiguration.class);
when(configuration.getLinkLabelFormat()).thenReturn("%l%la%n%na%N%NA [%w:%s.%p] %ls %np %P %NP (%t) [%w:%s.%p] %ls %np %P %NP (%t)");
EntityReferenceProvider entityReferenceProvider = this.mocker.getInstance(EntityReferenceProvider.class);
when(entityReferenceProvider.getDefaultReference(EntityType.DOCUMENT)).thenReturn(new EntityReference("WebHome", EntityType.DOCUMENT));
}
Aggregations