Package | Description |
---|---|
org.springframework.boot.test.context.assertj |
AssertJ support for ApplicationContexts.
|
Modifier and Type | Method and Description |
---|---|
static ApplicationContextAssert.Scope |
ApplicationContextAssert.Scope.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationContextAssert.Scope[] |
ApplicationContextAssert.Scope.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ApplicationContextAssert<C> |
ApplicationContextAssert.doesNotHaveBean(Class<?> type,
ApplicationContextAssert.Scope scope)
Verifies that the application context does not contain any beans of the given type.
|
<T> org.assertj.core.api.AbstractObjectAssert<?,T> |
ApplicationContextAssert.getBean(Class<T> type,
ApplicationContextAssert.Scope scope)
Obtain a single bean of the given type from the application context, the bean
becoming the object under test.
|
<T> org.assertj.core.api.MapAssert<String,T> |
ApplicationContextAssert.getBeans(Class<T> type,
ApplicationContextAssert.Scope scope)
Obtain a map bean names and instances of the given type from the application
context, the map becoming the object under test.
|
ApplicationContextAssert<C> |
ApplicationContextAssert.hasSingleBean(Class<?> type,
ApplicationContextAssert.Scope scope)
Verifies that the application context contains a single bean with the given type.
|