Uses of Class
org.assertj.reflection.ClassAssert
-
Uses of ClassAssert in org.assertj.reflection
Modifier and TypeMethodDescriptionstatic ClassAssert
ReflectionAssertions.assertThat
(Class<?> actual) Creates a new instance ofClassAssert
.ClassAssert.hasDeclaredConstructor
(Class<?>... parameterTypes) Verifies that theClass
has a declared constructor with the given argument types.ClassAssert.hasDeclaredConstructor
(Class<?>[] parameterTypes, java.util.function.Consumer<ConstructorAssert> constructorAssertConsumer) Verifies that theClass
has a declared constructor with multiple arguments.ClassAssert.hasDeclaredConstructor
(Class<?> parameterType, java.util.function.Consumer<ConstructorAssert> constructorAssertConsumer) Verifies that theClass
has a declared constructor with a single argument.ClassAssert.hasDeclaredConstructor
(java.util.function.Consumer<ConstructorAssert> constructorAssertConsumer) Verifies that theClass
has a declared constructor with no arguments.ClassAssert.hasDeclaredField
(String fieldName) Verifies that theClass
has a declared field with the given name.ClassAssert.hasDeclaredField
(String fieldName, java.util.function.Consumer<FieldAssert> fieldAssertConsumer) Verifies that theClass
has a declared field with the given name.ClassAssert.hasDeclaredMethod
(String methodName, Class<?>... parameterTypes) Verifies that theClass
has a declared method with the given name and argument types.ClassAssert.hasDeclaredMethod
(String methodName, Class<?>[] parameterTypes, java.util.function.Consumer<MethodAssert> methodAssertConsumer) Verifies that theClass
has a declared method with the given name and multiple arguments.ClassAssert.hasDeclaredMethod
(String methodName, Class<?> parameterType, java.util.function.Consumer<MethodAssert> methodAssertConsumer) Verifies that theClass
has a declared method with the given name and a single argument.ClassAssert.hasDeclaredMethod
(String methodName, java.util.function.Consumer<MethodAssert> methodAssertConsumer) Verifies that theClass
has a declared method with the given name and no arguments.ClassAssert.hasNoDeclaredConstructor
(Class<?>... parameterTypes) Verifies that theClass
does not have a declared constructor with the given argument types.ClassAssert.hasNoDeclaredField
(String fieldName) Verifies that theClass
does not have a declared field with the given name.ClassAssert.hasNoDeclaredMethod
(String methodName, Class<?>... parameterTypes) Verifies that theClass
has a declared method with the given name and argument types.