クラス 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コンストラクターの概要
コンストラクター修飾子コンストラクター説明protectedAbstractBindingResultAssert(StringSE name, BindingResult bindingResult, ClassSE<?> selfType) メソッドのサマリー
修飾子と型メソッド説明hasErrorsCount(int expected) エラーの合計数が予想値と等しいことを確認します。hasFieldErrorCode(StringSE fieldName, StringSE errorCode) 指定されたfieldNameのフィールドに、指定されたerrorCodeと一致するエラーがあることを確認します。hasFieldErrors(StringSE... fieldNames) 実際のバインディング結果に、指定されたfieldNamesとエラーのあるフィールドが含まれていることを確認します。hasOnlyFieldErrors(StringSE... fieldNames) 実際のバインディング結果には、指定されたfieldNamesとエラーのあるフィールドのみが含まれ、他には何も含まれていないことを確認します。protected AssertionErrorSEunexpectedBindingResult(StringSE reason, ObjectSE... arguments) クラス 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
コンストラクターの詳細
AbstractBindingResultAssert
protected AbstractBindingResultAssert(StringSE name, BindingResult bindingResult, ClassSE<?> selfType)
メソッドの詳細
hasErrorsCount
エラーの合計数が予想値と等しいことを確認します。- パラメーター:
expected- 予想されるエラー数
hasFieldErrors
実際のバインディング結果に、指定されたfieldNamesとエラーのあるフィールドが含まれていることを確認します。- パラメーター:
fieldNames- エラーになるはずのフィールドの名前
hasOnlyFieldErrors
実際のバインディング結果には、指定されたfieldNamesとエラーのあるフィールドのみが含まれ、他には何も含まれていないことを確認します。- パラメーター:
fieldNames- エラーになるはずのフィールド名の完全なリスト
hasFieldErrorCode
指定されたfieldNameのフィールドに、指定されたerrorCodeと一致するエラーがあることを確認します。- パラメーター:
fieldName- エラーのあるフィールドの名前errorCode- そのフィールドのエラーコード
unexpectedBindingResult