Package ubic.gemma.rest.util
Class ErrorsAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<ErrorsAssert,org.springframework.validation.Errors>
ubic.gemma.rest.util.ErrorsAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<ErrorsAssert,,org.springframework.validation.Errors> org.assertj.core.api.Descriptable<ErrorsAssert>,org.assertj.core.api.ExtensionPoints<ErrorsAssert,org.springframework.validation.Errors>
public class ErrorsAssert
extends org.assertj.core.api.AbstractAssert<ErrorsAssert,org.springframework.validation.Errors>
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhasFieldError(String objectName, String field, String code) Asserts that the errors object has a field error.hasFieldError(String objectName, String field, String code, Object rejectedValue) Asserts that the errors object has a field error with a given rejected value.hasGlobalError(String objectName, String code) Asserts that the errors object has a global error.Methods inherited from class 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, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
ErrorsAssert
public ErrorsAssert(org.springframework.validation.Errors errors)
-
-
Method Details
-
hasGlobalError
Asserts that the errors object has a global error. -
hasFieldError
Asserts that the errors object has a field error. -
hasFieldError
public ErrorsAssert hasFieldError(@Nullable String objectName, String field, String code, @Nullable Object rejectedValue) Asserts that the errors object has a field error with a given rejected value.
-