Search in sources :

Example 1 with MemoryConfigurationSource

use of org.xwiki.configuration.internal.MemoryConfigurationSource in project xwiki-platform by xwiki.

the class TemplateManagerTest method before.

@Before
public void before() throws Exception {
    when(this.velocityManagerMock.getVelocityContext()).thenReturn(new VelocityContext());
    MemoryConfigurationSource configuration = this.mocker.registerMemoryConfigurationSource();
    this.mocker.registerComponent(MockConfigurationSource.getDescriptor("all"), configuration);
    this.mocker.registerMockComponent(ContextualAuthorizationManager.class);
}
Also used : VelocityContext(org.apache.velocity.VelocityContext) MemoryConfigurationSource(org.xwiki.configuration.internal.MemoryConfigurationSource) Before(org.junit.Before)

Aggregations

VelocityContext (org.apache.velocity.VelocityContext)1 Before (org.junit.Before)1 MemoryConfigurationSource (org.xwiki.configuration.internal.MemoryConfigurationSource)1