Example usage for org.springframework.ui.freemarker FreeMarkerConfigurationFactoryBean createConfiguration

List of usage examples for org.springframework.ui.freemarker FreeMarkerConfigurationFactoryBean createConfiguration

Introduction

In this page you can find the example usage for org.springframework.ui.freemarker FreeMarkerConfigurationFactoryBean createConfiguration.

Prototype

public Configuration createConfiguration() throws IOException, TemplateException 

Source Link

Document

Prepare the FreeMarker Configuration and return it.

Usage

From source file:nl.surfnet.coin.selfservice.service.impl.EmailServiceImplTest.java

@Before
public void setUp() throws Exception {
    emailService = new EmailServiceImpl();
    FreeMarkerConfigurationFactoryBean freemarkerFactory = new FreeMarkerConfigurationFactoryBean();
    freemarkerFactory.setTemplateLoaderPath("classpath:/ftl/");
    freemarkerConfiguration = freemarkerFactory.createConfiguration();
    emailService.setFreemarkerConfiguration(freemarkerConfiguration);

    MockitoAnnotations.initMocks(this);
}