Package org.springframework.extensions.webscripts

Examples of org.springframework.extensions.webscripts.Container


  protected Runtime createRuntime() {
    final FTLTemplateProcessor ftlTemplateProcessor = mock(FTLTemplateProcessor.class);
    when(ftlTemplateProcessor.hasTemplate(anyString())).thenReturn(true);
    final TemplateProcessorRegistry templateProcessorRegistry = new TemplateProcessorRegistry();
    templateProcessorRegistry.registerTemplateProcessor(ftlTemplateProcessor, "ftl", "Freemarker");
    final Container container = mock(Container.class);
    when(container.getTemplateProcessorRegistry()).thenReturn(templateProcessorRegistry);
    final Runtime runtime = mock(Runtime.class);
    when(runtime.getContainer()).thenReturn(container);
    return runtime;
  }
View Full Code Here

TOP

Related Classes of org.springframework.extensions.webscripts.Container

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.