get

Factory method to create a new AssertableWebApplicationContext instance.

Return

a AssertableWebApplicationContext instance

Parameters

contextSupplier

a supplier that will either return a fully configured ConfigurableWebApplicationContext or throw an exception if the contextfails to start.


open fun get(contextSupplier: Supplier<out ConfigurableWebApplicationContext>, additionalContextInterfaces: Array<Class<out Any>>): AssertableWebApplicationContext

Factory method to create a new AssertableWebApplicationContext instance.

Return

a AssertableWebApplicationContext instance

Since

3.4.0

Parameters

contextSupplier

a supplier that will either return a fully configured ConfigurableWebApplicationContext or throw an exception if the contextfails to start.

additionalContextInterfaces

and additional context interfaces to add to theproxy