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>

public class FieldAssert extends org.assertj.core.api.AbstractAssert<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
    Modifier
    Constructor
    Description
    protected
    Creates a new FieldAssert.
  • Method Summary

    Modifier and Type
    Method
    Description
    hasType(Class<?> expected)
    Verifies that the Field has the expected type.
    Verifies that the Field is final.
    Verifies that the Field is not final.
    Verifies that the Field is not package-private.
    Verifies that the Field is not private.
    Verifies that the Field is not protected.
    Verifies that the Field is not public.
    Verifies that the Field is not static.
    Verifies that the Field is package-private.
    Verifies that the Field is private.
    Verifies that the Field is protected.
    Verifies that the Field is public.
    Verifies that the Field 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