Package ubic.gemma.rest.util
Class ErrorsAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<ErrorsAssert,Errors>
-
- ubic.gemma.rest.util.ErrorsAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<ErrorsAssert,Errors>
,org.assertj.core.api.Descriptable<ErrorsAssert>
,org.assertj.core.api.ExtensionPoints<ErrorsAssert,Errors>
public class ErrorsAssert extends org.assertj.core.api.AbstractAssert<ErrorsAssert,Errors>
-
-
Constructor Summary
Constructors Constructor Description ErrorsAssert(Errors errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorsAssert
hasFieldError(String objectName, String field, String code)
Asserts that the errors object has a field error.ErrorsAssert
hasFieldError(String objectName, String field, String code, Object rejectedValue)
Asserts that the errors object has a field error with a given rejected value.ErrorsAssert
hasGlobalError(String objectName, String code)
Asserts that the errors object has a global error.-
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, 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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
ErrorsAssert
public ErrorsAssert(Errors errors)
-
-
Method Detail
-
hasGlobalError
public ErrorsAssert hasGlobalError(@Nullable String objectName, String code)
Asserts that the errors object has a global error.
-
hasFieldError
public ErrorsAssert hasFieldError(@Nullable String objectName, String field, String code)
Asserts that the errors object has a field error.
-
-