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: 01-spring5/src/test/java/com/example/web/config/MvcConfigTest.java
test_class.identifier: MvcConfigTest
test_case.body: @Test
      @DisplayName("viewResolverのBeanが定義されている")
      public void viewResolverTest() {
          Method viewResolverMethod = assertDoesNotThrow(() -> MvcConfig.class.getMethod("viewResolver", SpringTemplateEngine.class));
          Bean bean = viewResolverMethod.getAnnotation(Bean.class);
          assertNotNull(bean);
  
          ThymeleafViewResolver viewResolver = mvcConfig.viewResolver(mvcConfig.templateEngine(mvcConfig.templateResolver()));
          ISpringTemplateEngine templateEngine = viewResolver.getTemplateEngine();
          assertAll("viewResolver not configured correctly",
                  () -> assertTrue(templateEngine instanceof SpringTemplateEngine),
                  () -> assertEquals(StandardCharsets.UTF_8.name(), viewResolver.getCharacterEncoding())
          );
      }
test_case.class_method_signature: MvcConfigTest.viewResolverTest()
test_case.full_signature: @Test @DisplayName("viewResolverのBeanが定義されている") public void viewResolverTest()
test_case.identifier: viewResolverTest
test_case.invocations: assertDoesNotThrow getMethod getAnnotation assertNotNull viewResolver templateEngine templateResolver getTemplateEngine assertAll assertTrue assertEquals name getCharacterEncoding
test_case.modifiers: @Test @DisplayName("viewResolverのBeanが定義されている") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void viewResolverTest()
focal_class.file: 01-spring5/src/main/java/com/example/web/config/MvcConfig.java
focal_class.identifier: MvcConfig
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.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 ThymeleafViewResolver viewResolver(SpringTemplateEngine templateEngine) {
          ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
          viewResolver.setTemplateEngine(templateEngine);
          viewResolver.setCharacterEncoding(StandardCharsets.UTF_8.name());
          return viewResolver;
      }
focal_method.class_method_signature: MvcConfig.viewResolver(SpringTemplateEngine templateEngine)
focal_method.full_signature: @Bean public ThymeleafViewResolver viewResolver(SpringTemplateEngine templateEngine)
focal_method.identifier: viewResolver
focal_method.invocations: setTemplateEngine setCharacterEncoding name
focal_method.modifiers: @Bean public
focal_method.parameters: (SpringTemplateEngine templateEngine)
focal_method.return: ThymeleafViewResolver
focal_method.signature: ThymeleafViewResolver viewResolver(SpringTemplateEngine templateEngine)