Class ModelIntegrationTestConfiguration
java.lang.Object
org.bremersee.pagebuilder.integration.ModelIntegrationTestConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan(basePackageClasses=IntegrationRestController.class)
public class ModelIntegrationTestConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
The model integration test configuration.
- Author:
- Christian Bremer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates jaxb context builder bean.org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizerCreates customizer for jackson 2 object mapper builder.xmlHttpMessageConverter(JaxbContextBuilder jaxbContextBuilder) Creates xml http message converter bean.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
ModelIntegrationTestConfiguration
public ModelIntegrationTestConfiguration()
-
-
Method Details
-
jaxbContextBuilder
Creates jaxb context builder bean.- Returns:
- the jaxb context builder
-
xmlHttpMessageConverter
@Bean public Jaxb2HttpMessageConverter xmlHttpMessageConverter(JaxbContextBuilder jaxbContextBuilder) Creates xml http message converter bean.- Parameters:
jaxbContextBuilder- the jaxb context builder- Returns:
- the jaxb 2 http message converter
-
jsonCustomizer
@Bean public org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer jsonCustomizer()Creates customizer for jackson 2 object mapper builder.- Returns:
- the jackson 2 object mapper builder customizer
-