Module thymeleaf.testing.spring6
Class SpringMVCWebProcessingContextBuilder
Object
org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
org.thymeleaf.testing.templateengine.spring6.context.web.SpringMVCWebProcessingContextBuilder
- All Implemented Interfaces:
org.thymeleaf.testing.templateengine.context.IProcessingContextBuilder
- Direct Known Subclasses:
SpringSecurityMVCWebProcessingContextBuilder
public class SpringMVCWebProcessingContextBuilder
extends org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
-
Field Summary
FieldsFields inherited from class org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
DEFAULT_LOCALE
-
Constructor Summary
ConstructorsConstructorDescriptionSpringMVCWebProcessingContextBuilder
(org.thymeleaf.testing.templateengine.context.web.ITestWebExchangeBuilder testWebExchangeBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.context.WebApplicationContext
createApplicationContext
(org.thymeleaf.testing.templateengine.testable.ITest test, jakarta.servlet.ServletContext servletContext, Locale locale, Map<String, Object> variables) protected final void
doAdditionalVariableProcessing
(org.thymeleaf.testing.templateengine.testable.ITest test, org.thymeleaf.web.IWebExchange webExchange, Locale locale, Map<String, Object> variables) boolean
protected void
initBinder
(String bindingVariableName, Object bindingObject, org.thymeleaf.testing.templateengine.testable.ITest test, org.springframework.validation.DataBinder dataBinder, Locale locale, Map<String, Object> variables) protected void
initBindingResult
(String bindingVariableName, Object bindingObject, org.thymeleaf.testing.templateengine.testable.ITest test, org.springframework.validation.BindingResult bindingResult, Locale locale, Map<String, Object> variables) protected void
initSpring
(org.springframework.context.ApplicationContext applicationContext, org.thymeleaf.testing.templateengine.testable.ITest test, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, Locale locale, Map<String, Object> variables) void
setApplicationContextConfigLocation
(String applicationContextConfigLocation) void
setShareAppContextForAllTests
(boolean shareAppContextForAllTests) Methods inherited from class org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
build, doCreateWebContextInstance
-
Field Details
-
DEFAULT_BINDING_MODEL_VARIABLE_NAME
- See Also:
-
DEFAULT_APPLICATION_CONTEXT_CONFIG_LOCATION
- See Also:
-
-
Constructor Details
-
SpringMVCWebProcessingContextBuilder
public SpringMVCWebProcessingContextBuilder(org.thymeleaf.testing.templateengine.context.web.ITestWebExchangeBuilder testWebExchangeBuilder) -
SpringMVCWebProcessingContextBuilder
public SpringMVCWebProcessingContextBuilder()
-
-
Method Details
-
getApplicationContextConfigLocation
-
setApplicationContextConfigLocation
-
doAdditionalVariableProcessing
protected final void doAdditionalVariableProcessing(org.thymeleaf.testing.templateengine.testable.ITest test, org.thymeleaf.web.IWebExchange webExchange, Locale locale, Map<String, Object> variables) - Overrides:
doAdditionalVariableProcessing
in classorg.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
-
initBinder
-
initBindingResult
-
createApplicationContext
-
initSpring
protected void initSpring(org.springframework.context.ApplicationContext applicationContext, org.thymeleaf.testing.templateengine.testable.ITest test, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, Locale locale, Map<String, Object> variables)
-