Uses of Class
org.assertj.reflection.FieldAssert
-
Uses of FieldAssert in org.assertj.reflection
Methods in org.assertj.reflection that return FieldAssertModifier and TypeMethodDescriptionstatic FieldAssert
ReflectionAssertions.assertThat
(Field actual) Creates a new instance ofFieldAssert
.Verifies that theField
has the expected type.FieldAssert.isFinal()
Verifies that theField
is final.FieldAssert.isNotFinal()
Verifies that theField
is not final.FieldAssert.isNotPackagePrivate()
Verifies that theField
is not package-private.FieldAssert.isNotPrivate()
Verifies that theField
is not private.FieldAssert.isNotProtected()
Verifies that theField
is not protected.FieldAssert.isNotPublic()
Verifies that theField
is not public.FieldAssert.isNotStatic()
Verifies that theField
is not static.FieldAssert.isPackagePrivate()
Verifies that theField
is package-private.FieldAssert.isPrivate()
Verifies that theField
is private.FieldAssert.isProtected()
Verifies that theField
is protected.FieldAssert.isPublic()
Verifies that theField
is public.FieldAssert.isStatic()
Verifies that theField
is static.Method parameters in org.assertj.reflection with type arguments of type FieldAssertModifier and TypeMethodDescriptionClassAssert.hasDeclaredField
(String fieldName, java.util.function.Consumer<FieldAssert> fieldAssertConsumer) Verifies that theClass
has a declared field with the given name.