クラス AbstractBindingResultAssert<SELF extends AbstractBindingResultAssert<SELF>>

java.lang.ObjectSE
org.assertj.core.api.AbstractAssert<SELF,BindingResult>
org.springframework.test.validation.AbstractBindingResultAssert<SELF>
型パラメーター:
SELF - アサーションの種類
実装されたすべてのインターフェース:
org.assertj.core.api.Assert<SELF,BindingResult>org.assertj.core.api.Descriptable<SELF>org.assertj.core.api.ExtensionPoints<SELF,BindingResult>

public abstract class AbstractBindingResultAssert<SELF extends AbstractBindingResultAssert<SELF>> extends org.assertj.core.api.AbstractAssert<SELF,BindingResult>
BindingResult に適用できる AssertJ assertions
導入:
6.2
作成者:
Stephane Nicoll
  • フィールドサマリー

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

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • コンストラクターのサマリー

    コンストラクター
    修飾子
    コンストラクター
    説明
    protected
    AbstractBindingResultAssert(StringSE name, BindingResult bindingResult, ClassSE<?> selfType)
  • 方法の概要

    修飾子と型
    メソッド
    説明
    hasErrorsCount(int expected)
    エラーの合計数が予想値と等しいことを確認します。
    hasFieldErrorCode(StringSE fieldName, StringSE errorCode)
    指定された fieldName のフィールドに、指定された errorCode と一致するエラーがあることを確認します。
    hasFieldErrors(StringSE... fieldNames)
    実際のバインディング結果に、指定された fieldNames とエラーのあるフィールドが含まれていることを確認します。
    実際のバインディング結果には、指定された fieldNames とエラーのあるフィールドのみが含まれ、他には何も含まれていないことを確認します。

    クラス 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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

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

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

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

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

  • メソッドの詳細

    • hasErrorsCount

      public SELF hasErrorsCount(int expected)
      エラーの合計数が予想値と等しいことを確認します。
      パラメーター:
      expected - 予想されるエラー数
    • hasFieldErrors

      public SELF hasFieldErrors(StringSE... fieldNames)
      実際のバインディング結果に、指定された fieldNames とエラーのあるフィールドが含まれていることを確認します。
      パラメーター:
      fieldNames - エラーになるはずのフィールドの名前
    • hasOnlyFieldErrors

      public SELF hasOnlyFieldErrors(StringSE... fieldNames)
      実際のバインディング結果には、指定された fieldNames とエラーのあるフィールドのみが含まれ、他には何も含まれていないことを確認します。
      パラメーター:
      fieldNames - エラーになるはずのフィールド名の完全なリスト
    • hasFieldErrorCode

      public SELF hasFieldErrorCode(StringSE fieldName, StringSE errorCode)
      指定された fieldName のフィールドに、指定された errorCode と一致するエラーがあることを確認します。
      パラメーター:
      fieldName - エラーのあるフィールドの名前
      errorCode - そのフィールドのエラーコード
    • unexpectedBindingResult

      protected AssertionErrorSE unexpectedBindingResult(StringSE reason, ObjectSE... arguments)