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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVerifies that theFieldhas the expected type.isFinal()Verifies that theFieldis final.Verifies that theFieldis not final.Verifies that theFieldis not package-private.Verifies that theFieldis not private.Verifies that theFieldis not protected.Verifies that theFieldis not public.Verifies that theFieldis not static.Verifies that theFieldis package-private.Verifies that theFieldis private.Verifies that theFieldis protected.isPublic()Verifies that theFieldis public.isStatic()Verifies that theFieldis 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, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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 theFieldis public.- Returns:
- This
FieldAssertinstance.
-
isNotPublic
Verifies that theFieldis not public.- Returns:
- This
FieldAssertinstance.
-
isProtected
Verifies that theFieldis protected.- Returns:
- This
FieldAssertinstance.
-
isNotProtected
Verifies that theFieldis not protected.- Returns:
- This
FieldAssertinstance.
-
isPrivate
Verifies that theFieldis private.- Returns:
- This
FieldAssertinstance.
-
isNotPrivate
Verifies that theFieldis not private.- Returns:
- This
FieldAssertinstance.
-
isPackagePrivate
Verifies that theFieldis package-private.- Returns:
- This
FieldAssertinstance.
-
isNotPackagePrivate
Verifies that theFieldis not package-private.- Returns:
- This
FieldAssertinstance.
-
isStatic
Verifies that theFieldis static.- Returns:
- This
FieldAssertinstance.
-
isNotStatic
Verifies that theFieldis not static.- Returns:
- This
FieldAssertinstance.
-
isFinal
Verifies that theFieldis final.- Returns:
- This
FieldAssertinstance.
-
isNotFinal
Verifies that theFieldis not final.- Returns:
- This
FieldAssertinstance.
-
hasType
Verifies that theFieldhas the expected type.- Parameters:
expected- The expected type.- Returns:
- this
FieldAssertinstance.
-