ApplicationContextAssert
AssertJ assertions that can be applied to an ApplicationContext.
Author
Phillip Webb
Andy Wilkinson
Since
2.0.0
Parameters
<C>
the application context type
See also
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Verifies that the application context (or ancestors) does not contain any beans of the given type.
Verifies that the application context does not contain a beans of the given name.
open fun doesNotHaveBean(type: Class<out Any>, scope: ApplicationContextAssert.Scope): ApplicationContextAssert<C>
Verifies that the application context does not contain any beans of the given type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Obtain a single bean of the given type from the application context (or ancestors), the bean becoming the object under test.
Obtain a single bean of the given name from the application context, the bean becoming the object under test.
open fun <T> getBean(type: Class<T>, scope: ApplicationContextAssert.Scope): AbstractObjectAssert<out Any, T>
Obtain a single bean of the given type from the application context, the bean becoming the object under test.
Obtain a single bean of the given name and type from the application context, the bean becoming the object under test.
Link copied to clipboard
Link copied to clipboard
Obtain a map bean names and instances of the given type from the application context (or ancestors), the map becoming the object under test.
Obtain a map bean names and instances of the given type from the application context, the map becoming the object under test.
Link copied to clipboard
Obtain the failure that stopped the application context from running, the failure becoming the object under test.
Link copied to clipboard
Link copied to clipboard
Verifies that the application context contains a bean with the given name.
Link copied to clipboard
Verifies that the application has failed to start.
Link copied to clipboard
Verifies that the application has not failed to start.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Verifies that the application context (or ancestors) contains a single bean with the given type.
open fun hasSingleBean(type: Class<out Any>, scope: ApplicationContextAssert.Scope): ApplicationContextAssert<C>
Verifies that the application context contains a single bean with the given type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard