test_class.file: handlebars-springmvc/src/test/java/com/github/jknack/handlebars/springmvc/HandlebarsViewTest.java
test_class.identifier: HandlebarsViewTest
test_case.body: @Test
    @SuppressWarnings("unchecked")
    public void renderMergedTemplateModel() throws Exception {
      Map<String, Object> model = createMock(Map.class);
  
      PrintWriter writer = createMock(PrintWriter.class);
  
      Template template = createMock(Template.class);
      Capture<Context> context = EasyMock.newCapture();
      template.apply(capture(context), isA(PrintWriter.class));
  
      HttpServletRequest request = createMock(HttpServletRequest.class);
  
      HttpServletResponse response = createMock(HttpServletResponse.class);
      expect(response.getWriter()).andReturn(writer);
  
      replay(template, model, request, response);
  
      HandlebarsView view = new HandlebarsView();
      view.setValueResolver(MapValueResolver.INSTANCE);
      view.setTemplate(template);
      view.renderMergedTemplateModel(model, request, response);
  
      assertNotNull(context.getValue());
  
      verify(template, model, request, response);
    }
test_case.class_method_signature: HandlebarsViewTest.renderMergedTemplateModel()
test_case.full_signature: @Test @SuppressWarnings("unchecked") public void renderMergedTemplateModel()
test_case.identifier: renderMergedTemplateModel
test_case.invocations: createMock createMock createMock newCapture apply capture isA createMock createMock andReturn expect getWriter replay setValueResolver setTemplate renderMergedTemplateModel assertNotNull getValue verify
test_case.modifiers: @Test @SuppressWarnings("unchecked") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void renderMergedTemplateModel()
focal_class.declarator: template
focal_class.modifier: protected
focal_class.original_string: protected Template template;
focal_class.type: Template
focal_class.var_name: template
focal_class.declarator: valueResolvers
focal_class.modifier: protected
focal_class.original_string: protected ValueResolver[] valueResolvers;
focal_class.type: ValueResolver[]
focal_class.var_name: valueResolvers
focal_class.file: handlebars-springmvc/src/main/java/com/github/jknack/handlebars/springmvc/HandlebarsView.java
focal_class.identifier: HandlebarsView
focal_class.class_method_signature: HandlebarsView.renderMergedTemplateModel(final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
focal_class.full_signature: @Override protected void renderMergedTemplateModel(final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
focal_class.identifier: renderMergedTemplateModel
focal_class.modifiers: @Override protected
focal_class.parameters: (final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
focal_class.return: void
focal_class.signature: void renderMergedTemplateModel(final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
focal_class.class_method_signature: HandlebarsView.getTemplate()
focal_class.full_signature: public Template getTemplate()
focal_class.identifier: getTemplate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Template
focal_class.signature: Template getTemplate()
focal_class.class_method_signature: HandlebarsView.checkResource(final Locale locale)
focal_class.full_signature: @Override public boolean checkResource(final Locale locale)
focal_class.identifier: checkResource
focal_class.modifiers: @Override public
focal_class.parameters: (final Locale locale)
focal_class.return: boolean
focal_class.signature: boolean checkResource(final Locale locale)
focal_class.class_method_signature: HandlebarsView.setTemplate(final Template template)
focal_class.full_signature: public void setTemplate(final Template template)
focal_class.identifier: setTemplate
focal_class.modifiers: public
focal_class.parameters: (final Template template)
focal_class.return: void
focal_class.signature: void setTemplate(final Template template)
focal_class.class_method_signature: HandlebarsView.setValueResolver(final ValueResolver... valueResolvers)
focal_class.full_signature: public void setValueResolver(final ValueResolver... valueResolvers)
focal_class.identifier: setValueResolver
focal_class.modifiers: public
focal_class.parameters: (final ValueResolver... valueResolvers)
focal_class.return: void
focal_class.signature: void setValueResolver(final ValueResolver... valueResolvers)
focal_class.class_method_signature: HandlebarsView.isContextRequired()
focal_class.full_signature: @Override protected boolean isContextRequired()
focal_class.identifier: isContextRequired
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isContextRequired()
focal_class.superclass: extends AbstractTemplateView
focal_method.body: @Override
    protected void renderMergedTemplateModel(final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
        throws IOException {
      Context context = Context.newBuilder(model)
          .resolver(valueResolvers)
          .build();
      try {
        template.apply(context, response.getWriter());
      } finally {
        context.destroy();
      }
    }
focal_method.class_method_signature: HandlebarsView.renderMergedTemplateModel(final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
focal_method.full_signature: @Override protected void renderMergedTemplateModel(final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
focal_method.identifier: renderMergedTemplateModel
focal_method.invocations: build resolver newBuilder apply getWriter destroy
focal_method.modifiers: @Override protected
focal_method.parameters: (final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)
focal_method.return: void
focal_method.signature: void renderMergedTemplateModel(final Map<String, Object> model,
        final HttpServletRequest request, final HttpServletResponse response)