get
open fun get(contextSupplier: Supplier<out ConfigurableApplicationContext>): AssertableApplicationContext
Factory method to create a new AssertableApplicationContext instance.
Return
an AssertableApplicationContext instance
Parameters
contextSupplier
a supplier that will either return a fully configured ConfigurableApplicationContext or throw an exception if the context failsto start.
open fun get(contextSupplier: Supplier<out ConfigurableApplicationContext>, additionalContextInterfaces: Array<Class<out Any>>): AssertableApplicationContext
Factory method to create a new AssertableApplicationContext instance.
Return
an AssertableApplicationContext instance
Since
3.4.0
Parameters
contextSupplier
a supplier that will either return a fully configured ConfigurableApplicationContext or throw an exception if the context failsto start.
additionalContextInterfaces
and additional context interfaces to add to theproxy