test_class.declarator: templateEngine
test_class.modifier: private
test_class.original_string: private TemplateEngine templateEngine;
test_class.type: TemplateEngine
test_class.var_name: templateEngine
test_class.declarator: templateConfiguration
test_class.modifier: private
test_class.original_string: private TemplateConfiguration templateConfiguration;
test_class.type: TemplateConfiguration
test_class.var_name: templateConfiguration
test_class.file: plugin-code/src/test/java/com/trivago/cluecumber/rendering/pages/templates/TemplateEngineTest.java
test_class.identifier: TemplateEngineTest
test_case.body: @Test
      public void getTemplateTest() throws CluecumberPluginException {
          Template returnTemplate = mock(Template.class);
          when(returnTemplate.getName()).thenReturn("MyTemplate");
          when(templateConfiguration.getTemplate(TemplateEngine.Template.SCENARIO_DETAILS.getFileName())).thenReturn(returnTemplate);
          final Template template = templateEngine.getTemplate(TemplateEngine.Template.SCENARIO_DETAILS);
          assertThat(template.getName(), is("MyTemplate"));
      }
test_case.class_method_signature: TemplateEngineTest.getTemplateTest()
test_case.full_signature: @Test public void getTemplateTest()
test_case.identifier: getTemplateTest
test_case.invocations: mock thenReturn when getName thenReturn when getTemplate getFileName getTemplate assertThat getName is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getTemplateTest()
focal_class.declarator: templateConfiguration
focal_class.modifier: private final
focal_class.original_string: private final TemplateConfiguration templateConfiguration;
focal_class.type: TemplateConfiguration
focal_class.var_name: templateConfiguration
focal_class.file: plugin-code/src/main/java/com/trivago/cluecumber/rendering/pages/templates/TemplateEngine.java
focal_class.identifier: TemplateEngine
focal_class.class_method_signature: TemplateEngine.TemplateEngine(final TemplateConfiguration templateConfiguration)
focal_class.full_signature: @Inject  TemplateEngine(final TemplateConfiguration templateConfiguration)
focal_class.identifier: TemplateEngine
focal_class.modifiers: @Inject
focal_class.parameters: (final TemplateConfiguration templateConfiguration)
focal_class.signature:  TemplateEngine(final TemplateConfiguration templateConfiguration)
focal_class.class_method_signature: TemplateEngine.getTemplate(final Template template)
focal_class.full_signature: public freemarker.template.Template getTemplate(final Template template)
focal_class.identifier: getTemplate
focal_class.modifiers: public
focal_class.parameters: (final Template template)
focal_class.return: freemarker.template.Template
focal_class.signature: freemarker.template.Template getTemplate(final Template template)
focal_method.body: public freemarker.template.Template getTemplate(final Template template) throws CluecumberPluginException {
          return templateConfiguration.getTemplate(template.fileName);
      }
focal_method.class_method_signature: TemplateEngine.getTemplate(final Template template)
focal_method.full_signature: public freemarker.template.Template getTemplate(final Template template)
focal_method.identifier: getTemplate
focal_method.invocations: getTemplate
focal_method.modifiers: public
focal_method.parameters: (final Template template)
focal_method.return: freemarker.template.Template
focal_method.signature: freemarker.template.Template getTemplate(final Template template)