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