test_class.declarator: mvcConfig = new MvcConfig()
test_class.original_string: MvcConfig mvcConfig = new MvcConfig();
test_class.type: MvcConfig
test_class.var_name: mvcConfig
test_class.file: 02-spring5-answer/src/test/java/com/example/web/config/MvcConfigTest.java
test_class.identifier: MvcConfigTest
test_case.body: @Test
      @DisplayName("templateResolverのBeanが定義されている")
      public void templateResolverTest() {
          Method templateResolverMethod = assertDoesNotThrow(() -> MvcConfig.class.getMethod("templateResolver"));
          Bean bean = templateResolverMethod.getAnnotation(Bean.class);
          assertNotNull(bean);
  
          SpringResourceTemplateResolver templateResolver = mvcConfig.templateResolver();
          assertAll("templateResolver not configured correctly",
                  () -> assertEquals("classpath:/templates/", templateResolver.getPrefix()),
                  () -> assertEquals(".html", templateResolver.getSuffix()),
                  () -> assertEquals(TemplateMode.HTML, templateResolver.getTemplateMode()),
                  () -> assertEquals(StandardCharsets.UTF_8.name(),
                          templateResolver.getCharacterEncoding()),
                  () -> assertEquals(false, templateResolver.isCacheable())
          );
      }
test_case.class_method_signature: MvcConfigTest.templateResolverTest()
test_case.full_signature: @Test @DisplayName("templateResolverのBeanが定義されている") public void templateResolverTest()
test_case.identifier: templateResolverTest
test_case.invocations: assertDoesNotThrow getMethod getAnnotation assertNotNull templateResolver assertAll assertEquals getPrefix assertEquals getSuffix assertEquals getTemplateMode assertEquals name getCharacterEncoding assertEquals isCacheable
test_case.modifiers: @Test @DisplayName("templateResolverのBeanが定義されている") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void templateResolverTest()
focal_class.file: 02-spring5-answer/src/main/java/com/example/web/config/MvcConfig.java
focal_class.identifier: MvcConfig
focal_class.interfaces: implements WebMvcConfigurer
focal_class.class_method_signature: MvcConfig.templateResolver()
focal_class.full_signature: @Bean public SpringResourceTemplateResolver templateResolver()
focal_class.identifier: templateResolver
focal_class.modifiers: @Bean public
focal_class.parameters: ()
focal_class.return: SpringResourceTemplateResolver
focal_class.signature: SpringResourceTemplateResolver templateResolver()
focal_class.class_method_signature: MvcConfig.templateEngine(SpringResourceTemplateResolver templateResolver)
focal_class.full_signature: @Bean public SpringTemplateEngine templateEngine(SpringResourceTemplateResolver templateResolver)
focal_class.identifier: templateEngine
focal_class.modifiers: @Bean public
focal_class.parameters: (SpringResourceTemplateResolver templateResolver)
focal_class.return: SpringTemplateEngine
focal_class.signature: SpringTemplateEngine templateEngine(SpringResourceTemplateResolver templateResolver)
focal_class.class_method_signature: MvcConfig.viewResolver(SpringTemplateEngine templateEngine)
focal_class.full_signature: @Bean public ThymeleafViewResolver viewResolver(SpringTemplateEngine templateEngine)
focal_class.identifier: viewResolver
focal_class.modifiers: @Bean public
focal_class.parameters: (SpringTemplateEngine templateEngine)
focal_class.return: ThymeleafViewResolver
focal_class.signature: ThymeleafViewResolver viewResolver(SpringTemplateEngine templateEngine)
focal_class.class_method_signature: MvcConfig.addResourceHandlers(ResourceHandlerRegistry registry)
focal_class.full_signature: @Override public void addResourceHandlers(ResourceHandlerRegistry registry)
focal_class.identifier: addResourceHandlers
focal_class.modifiers: @Override public
focal_class.parameters: (ResourceHandlerRegistry registry)
focal_class.return: void
focal_class.signature: void addResourceHandlers(ResourceHandlerRegistry registry)
focal_class.class_method_signature: MvcConfig.messageSource()
focal_class.full_signature: @Bean public MessageSource messageSource()
focal_class.identifier: messageSource
focal_class.modifiers: @Bean public
focal_class.parameters: ()
focal_class.return: MessageSource
focal_class.signature: MessageSource messageSource()
focal_method.body: @Bean
      public SpringResourceTemplateResolver templateResolver() {
          SpringResourceTemplateResolver templateResolver =
                  new SpringResourceTemplateResolver();
          templateResolver.setPrefix("classpath:/templates/");
          templateResolver.setSuffix(".html");
          templateResolver.setTemplateMode(TemplateMode.HTML);
          templateResolver.setCharacterEncoding(StandardCharsets.UTF_8.name());
          templateResolver.setCacheable(false);
          return templateResolver;
      }
focal_method.class_method_signature: MvcConfig.templateResolver()
focal_method.full_signature: @Bean public SpringResourceTemplateResolver templateResolver()
focal_method.identifier: templateResolver
focal_method.invocations: setPrefix setSuffix setTemplateMode setCharacterEncoding name setCacheable
focal_method.modifiers: @Bean public
focal_method.parameters: ()
focal_method.return: SpringResourceTemplateResolver
focal_method.signature: SpringResourceTemplateResolver templateResolver()