Examples of ThymeleafTestEngine


Examples of com.connect_group.thymeleaf.testing.ThymeleafTestEngine

  }
 
  @Bean
  @DependsOn("propertyConfigurer")
  public ThymeleafTestEngine testEngine() {
    ThymeleafTestEngine engine = new ThymeleafTestEngine();

    engine.setCacheManager(thymeleafCacheManager());
    engine.setTemplateModeHandlers(templateModeHandlers());
    engine.setAdditionalDialects(additionalDialects());

   
   
    Set<ITemplateResolver> templateResolvers = new HashSet<ITemplateResolver>();
    templateResolvers.add(servletContextTemplateResolver());
    templateResolvers.add(fileTemplateResolver());
    engine.setTemplateResolvers(templateResolvers);
   
    engine.setServletContext(servletContext);
    engine.setApplicationContext(applicationContext);
    return engine;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.