クラス MethodAssert

java.lang.ObjectSE
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<MethodAssert,MethodSE>
org.springframework.test.util.MethodAssert
実装されているすべてのインターフェース:
org.assertj.core.api.Assert<MethodAssert,MethodSE>org.assertj.core.api.Descriptable<MethodAssert>org.assertj.core.api.ExtensionPoints<MethodAssert,MethodSE>

public class MethodAssert extends org.assertj.core.api.AbstractObjectAssert<MethodAssert,MethodSE>
AssertJ assertions は MethodSE に適用できます。
導入:
6.2
作成者:
Stephane Nicoll
  • フィールドのサマリー

    クラス org.assertj.core.api.AbstractAssert から継承されたフィールド

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    実際のメソッドが指定された type で宣言されていることを確認します。
    実際のメソッドに指定された名前があることを確認します。

    クラス org.assertj.core.api.AbstractObjectAssert から継承されたメソッド

    as, as, doesNotReturn, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison

    クラス org.assertj.core.api.AbstractAssert から継承されたメソッド

    actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, finalize, getClass, notify, notifyAll, toString, wait, waitSE, waitSE

    インターフェース org.assertj.core.api.Descriptable から継承されたメソッド

    as, describedAs, describedAs
  • コンストラクターの詳細

  • メソッドの詳細

    • hasName

      public MethodAssert hasName(StringSE name)
      実際のメソッドに指定された名前があることを確認します。
      パラメーター:
      name - 期待されるメソッド名
    • hasDeclaringClass

      public MethodAssert hasDeclaringClass(ClassSE<?> type)
      実際のメソッドが指定された type で宣言されていることを確認します。
      パラメーター:
      type - 予想される宣言クラス