get

open fun <T : ApplicationContextAssertProvider<C>?, C : ApplicationContext?> get(type: Class<T>, contextType: Class<out C>, contextSupplier: Supplier<out C>): T

Factory method to create a new ApplicationContextAssertProvider instance.

Return

a ApplicationContextAssertProvider instance

Parameters

<T>

the assert provider type

<C>

the context type

type

the type of ApplicationContextAssertProvider required (must bean interface)

contextType

the type of ApplicationContext being managed (must be aninterface)

contextSupplier

a supplier that will either return a fully configured ApplicationContext or throw an exception if the context fails to start.


open fun <T : ApplicationContextAssertProvider<C>?, C : ApplicationContext?> get(type: Class<T>, contextType: Class<out C>, contextSupplier: Supplier<out C>, additionalContextInterfaces: Array<Class<out Any>>): T

Factory method to create a new ApplicationContextAssertProvider instance.

Return

a ApplicationContextAssertProvider instance

Since

3.4.0

Parameters

<T>

the assert provider type

<C>

the context type

type

the type of ApplicationContextAssertProvider required (must bean interface)

contextType

the type of ApplicationContext being managed (must be aninterface)

contextSupplier

a supplier that will either return a fully configured ApplicationContext or throw an exception if the context fails to start.

additionalContextInterfaces

and additional context interfaces to add to theproxy