Enum Class的使用
cn.taketoday.framework.test.context.assertj.ApplicationContextAssert.Scope
-
cn.taketoday.framework.test.context.assertj中ApplicationContextAssert.Scope的使用
修饰符和类型方法说明Returns the enum constant of this class with the specified name.static ApplicationContextAssert.Scope[]ApplicationContextAssert.Scope.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明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.private StringApplicationContextAssert.getPrimary(String[] names, ApplicationContextAssert.Scope scope) ApplicationContextAssert.hasSingleBean(Class<?> type, ApplicationContextAssert.Scope scope) Verifies that the application context contains a single bean with the given type.private booleanApplicationContextAssert.isPrimary(String name, ApplicationContextAssert.Scope scope)