@Test public void testTemplateRenderingWithMap() { EmptyController controller = new EmptyController(); Context context = mock(Context.class); Context.CONTEXT.set(context); Template template = mock(Template.class); Map<String, Object> parameters = ImmutableMap.<String, Object>of("foo", "bar"); controller.render(template, parameters); verify(template, times(1)).render(controller, parameters); }
public Renderable<?> render(Template template, Map<String, Object> parameters) { return template.render(this, parameters); }
DefaultController extends Results implements Status, HeaderNames, Controller { public Renderable<?> render(Template template, Map<String, Object> parameters) { return template.render(this, parameters); } }
DefaultController extends Results implements Status, HeaderNames, Controller { public Renderable<?> render(Template template, Map<String, Object> parameters) { return template.render(this, parameters); }  }
DefaultController extends Results implements Status, HeaderNames, Controller { public Renderable<?> render(Template template, Map<String, Object> parameters) { return template.render(this, parameters); }  Logger logger(); Context context(); Request request(); SessionCookie session(); void session(String key, String value); String session(String key); FlashCookie flash(); void flash(String key, String value); String flash(String key); List<Route> routes(); Renderable<?> render(Template template, Map<String, Object> parameters); Renderable<?> render(Template template, Object... parameters); Renderable<?> render(Template template); }
DefaultController extends Results implements Status, HeaderNames, Controller { public Renderable<?> render(Template template, Map<String, Object> parameters) { return template.render(this, parameters); }  Logger logger(); Context context(); Request request(); SessionCookie session(); void session(String key, String value); String session(String key); FlashCookie flash(); void flash(String key, String value); String flash(String key); List<Route> routes(); Renderable<?> render(Template template, Map<String, Object> parameters); Renderable<?> render(Template template, Object... parameters); Renderable<?> render(Template template);  }