Uses of Enum
org.springframework.boot.test.context.assertj.ApplicationContextAssert.Scope
Package
Description
AssertJ support for ApplicationContexts.
-
Uses of ApplicationContextAssert.Scope in org.springframework.boot.test.context.assertj
Modifier and TypeMethodDescriptionReturns 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 TypeMethodDescriptionApplicationContextAssert.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.hasSingleBean
(Class<?> type, ApplicationContextAssert.Scope scope) Verifies that the application context contains a single bean with the given type.