Uses of Class
org.springframework.boot.test.context.assertj.ApplicationContextAssert
Package
Description
AssertJ support for ApplicationContexts.
-
Uses of ApplicationContextAssert in org.springframework.boot.test.context.assertj
Modifier and TypeMethodDescriptionApplicationContextAssertProvider.assertThat()
Deprecated.to prevent accidental use.ApplicationContextAssert.doesNotHaveBean
(Class<?> type) Verifies that the application context (or ancestors) does not contain any beans of the given type.ApplicationContextAssert.doesNotHaveBean
(Class<?> type, ApplicationContextAssert.Scope scope) Verifies that the application context does not contain any beans of the given type.ApplicationContextAssert.doesNotHaveBean
(String name) Verifies that the application context does not contain a beans of the given name.Verifies that the application context contains a bean with the given name.ApplicationContextAssert.hasFailed()
Verifies that the application has failed to start.ApplicationContextAssert.hasNotFailed()
Verifies that the application has not failed to start.ApplicationContextAssert.hasSingleBean
(Class<?> type) Verifies that the application context (or ancestors) contains a single bean with the given type.ApplicationContextAssert.hasSingleBean
(Class<?> type, ApplicationContextAssert.Scope scope) Verifies that the application context contains a single bean with the given type.