WebApplicationContextRunner

constructor()

Create a new WebApplicationContextRunner instance using an AnnotationConfigServletWebApplicationContext with a MockServletContext as the underlying source.

See also


constructor(contextFactory: Supplier<ConfigurableWebApplicationContext>)

Create a new WebApplicationContextRunner instance using the specified contextFactory as the underlying source.

Parameters

contextFactory

a supplier that returns a new instance on each call be addedto the application context proxy


constructor(contextFactory: Supplier<ConfigurableWebApplicationContext>, additionalContextInterfaces: Array<Class<out Any>>)

Create a new WebApplicationContextRunner instance using the specified contextFactory as the underlying source.

Since

3.4.0

Parameters

contextFactory

a supplier that returns a new instance on each call

additionalContextInterfaces

any additional application context interfaces tobe added to the application context proxy