Uses of Class
org.assertj.reflection.MethodAssert
-
Uses of MethodAssert in org.assertj.reflection
Methods in org.assertj.reflection that return MethodAssertModifier and TypeMethodDescriptionstatic MethodAssertReflectionAssertions.assertThat(Method actual) Creates a new instance ofMethodAssert.MethodAssert.hasReturnType(Class<?> expected) Verifies that theMethodhas the expected return type.MethodAssert.isNotPackagePrivate()Verifies that theMethodis not package-private.MethodAssert.isNotPrivate()Verifies that theMethodis not private.MethodAssert.isNotProtected()Verifies that theMethodis not protected.MethodAssert.isNotPublic()Verifies that theMethodis not public.MethodAssert.isNotStatic()Verifies that theMethodis not static.MethodAssert.isPackagePrivate()Verifies that theMethodis package-private.MethodAssert.isPrivate()Verifies that theMethodis private.MethodAssert.isProtected()Verifies that theMethodis protected.MethodAssert.isPublic()Verifies that theMethodis public.MethodAssert.isStatic()Verifies that theMethodis static.MethodAssert.throwsException(Class<? extends Exception> expected) Verifies that theMethoddeclares the given exception to be thrown.Method parameters in org.assertj.reflection with type arguments of type MethodAssertModifier and TypeMethodDescriptionClassAssert.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.