@Test public void test_render() throws Exception { String templateVariable = "Hello Thymeleaf!"; Map<String, Object> model = new HashMap<>(); model.put("message", templateVariable); String expected = String.format("<h1>%s</h1>", templateVariable); String actual = new ThymeleafTemplateEngine().render(new ModelAndView(model, "hello")); assertEquals(expected, actual); }
@Override @SuppressWarnings("unchecked") public String render(ModelAndView modelAndView) { return render(modelAndView, Locale.getDefault()); }
ThymeleafTemplateEngine extends TemplateEngine { @Override @SuppressWarnings("unchecked") public String render(ModelAndView modelAndView) { return render(modelAndView, Locale.getDefault()); } }
ThymeleafTemplateEngine extends TemplateEngine { @Override @SuppressWarnings("unchecked") public String render(ModelAndView modelAndView) { return render(modelAndView, Locale.getDefault()); } ThymeleafTemplateEngine();  ThymeleafTemplateEngine(String prefix, String suffix);  ThymeleafTemplateEngine(ITemplateResolver templateResolver); }
ThymeleafTemplateEngine extends TemplateEngine { @Override @SuppressWarnings("unchecked") public String render(ModelAndView modelAndView) { return render(modelAndView, Locale.getDefault()); } ThymeleafTemplateEngine();  ThymeleafTemplateEngine(String prefix, String suffix);  ThymeleafTemplateEngine(ITemplateResolver templateResolver); @Override @SuppressWarnings("unchecked") String render(ModelAndView modelAndView); String render(ModelAndView modelAndView, Locale locale); }
ThymeleafTemplateEngine extends TemplateEngine { @Override @SuppressWarnings("unchecked") public String render(ModelAndView modelAndView) { return render(modelAndView, Locale.getDefault()); } ThymeleafTemplateEngine();  ThymeleafTemplateEngine(String prefix, String suffix);  ThymeleafTemplateEngine(ITemplateResolver templateResolver); @Override @SuppressWarnings("unchecked") String render(ModelAndView modelAndView); String render(ModelAndView modelAndView, Locale locale);  }