withMockServletContext
open fun withMockServletContext(contextFactory: Supplier<ConfigurableWebApplicationContext>): Supplier<ConfigurableWebApplicationContext>
Decorate the specified contextFactory
to set a MockServletContext on each newly created WebApplicationContext.
Return
an updated supplier that will set the MockServletContext
Parameters
contextFactory
the context factory to decorate