Class MethodAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<MethodAssert,Method>
org.assertj.reflection.MethodAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<MethodAssert,Method>, org.assertj.core.api.Descriptable<MethodAssert>, org.assertj.core.api.ExtensionPoints<MethodAssert,Method>

public class MethodAssert extends org.assertj.core.api.AbstractAssert<MethodAssert,Method>
Assertions for the Method 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 MethodAssert.
  • Method Summary

    Modifier and Type
    Method
    Description
    hasReturnType(Class<?> expected)
    Verifies that the Method has the expected return type.
    Verifies that the Method is not package-private.
    Verifies that the Method is not private.
    Verifies that the Method is not protected.
    Verifies that the Method is not public.
    Verifies that the Method is not static.
    Verifies that the Method is package-private.
    Verifies that the Method is private.
    Verifies that the Method is protected.
    Verifies that the Method is public.
    Verifies that the Method is static.
    throwsException(Class<? extends Exception> expected)
    Verifies that the Method declares the given exception to be thrown.

    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