Package org.assertj.reflection
Class FieldAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<FieldAssert,Field>
org.assertj.reflection.FieldAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<FieldAssert,
,Field> org.assertj.core.api.Descriptable<FieldAssert>
,org.assertj.core.api.ExtensionPoints<FieldAssert,
Field>
Assertions for the
Field
type.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionVerifies that theField
has the expected type.isFinal()
Verifies that theField
is final.Verifies that theField
is not final.Verifies that theField
is not package-private.Verifies that theField
is not private.Verifies that theField
is not protected.Verifies that theField
is not public.Verifies that theField
is not static.Verifies that theField
is package-private.Verifies that theField
is private.Verifies that theField
is protected.isPublic()
Verifies that theField
is public.isStatic()
Verifies that theField
is static.Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Constructor Details
-
FieldAssert
Creates a newFieldAssert
.- Parameters:
actual
- The actual value.
-
-
Method Details
-
isPublic
Verifies that theField
is public.- Returns:
- This
FieldAssert
instance.
-
isNotPublic
Verifies that theField
is not public.- Returns:
- This
FieldAssert
instance.
-
isProtected
Verifies that theField
is protected.- Returns:
- This
FieldAssert
instance.
-
isNotProtected
Verifies that theField
is not protected.- Returns:
- This
FieldAssert
instance.
-
isPrivate
Verifies that theField
is private.- Returns:
- This
FieldAssert
instance.
-
isNotPrivate
Verifies that theField
is not private.- Returns:
- This
FieldAssert
instance.
-
isPackagePrivate
Verifies that theField
is package-private.- Returns:
- This
FieldAssert
instance.
-
isNotPackagePrivate
Verifies that theField
is not package-private.- Returns:
- This
FieldAssert
instance.
-
isStatic
Verifies that theField
is static.- Returns:
- This
FieldAssert
instance.
-
isNotStatic
Verifies that theField
is not static.- Returns:
- This
FieldAssert
instance.
-
isFinal
Verifies that theField
is final.- Returns:
- This
FieldAssert
instance.
-
isNotFinal
Verifies that theField
is not final.- Returns:
- This
FieldAssert
instance.
-
hasType
Verifies that theField
has the expected type.- Parameters:
expected
- The expected type.- Returns:
- this
FieldAssert
instance.
-