use of org.xwiki.velocity.VelocityEngine in project xwiki-platform by xwiki.
the class WikiUIExtensionParametersTest method setUp.
@Before
public void setUp() throws Exception {
VelocityManager velocityManager = componentManager.registerMockComponent(VelocityManager.class);
execution = componentManager.registerMockComponent(Execution.class);
modelContext = componentManager.registerMockComponent(ModelContext.class);
velocityEngine = mock(VelocityEngine.class);
velocityContext = new VelocityContext();
ExecutionContext executionContext = mock(ExecutionContext.class);
when(execution.getContext()).thenReturn(executionContext);
when(velocityManager.getVelocityContext()).thenReturn(velocityContext);
when(velocityManager.getVelocityEngine()).thenReturn(velocityEngine);
}
Aggregations