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