Package org.assertj.core.error
Class AssertionErrorCreator
java.lang.Object
org.assertj.core.error.AssertionErrorCreator
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ConstructorInvokerprivate static final Class<?>[]private static final Class<?>[]private static final Class<?>[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassertionError(String message) assertionError(String message, Object actual, Object expected, Representation representation) private Optional<AssertionError> assertionFailedError(String message, Object actual, Object expected) private Optional<AssertionError> comparisonFailure(String message, Object actual, Object expected, Representation representation) extractFailuresOf(Object multipleFailuresError) private static StringheadingFrom(Description description) multipleAssertionsError(Description description, List<? extends AssertionError> errors) multipleSoftAssertionsError(List<? extends Throwable> errors) private static voidthrowError(AssertionError error) private Optional<AssertionError> tryBuildingMultipleFailuresError(String heading, List<? extends Throwable> errorsCollected) private Optional<AssertionError> tryBuildingMultipleFailuresError(List<? extends Throwable> errorsCollected) voidtryThrowingMultipleFailuresError(List<? extends Throwable> errorsCollected)
-
Field Details
-
MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERROR
-
MSG_ARG_TYPES_FOR_COMPARISON_FAILURE
-
MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPES
-
constructorInvoker
ConstructorInvoker constructorInvoker
-
-
Constructor Details
-
AssertionErrorCreator
public AssertionErrorCreator() -
AssertionErrorCreator
-
-
Method Details
-
assertionError
public AssertionError assertionError(String message, Object actual, Object expected, Representation representation) -
assertionFailedError
private Optional<AssertionError> assertionFailedError(String message, Object actual, Object expected) -
comparisonFailure
private Optional<AssertionError> comparisonFailure(String message, Object actual, Object expected, Representation representation) -
assertionError
-
multipleSoftAssertionsError
-
multipleAssertionsError
public AssertionError multipleAssertionsError(Description description, List<? extends AssertionError> errors) -
tryThrowingMultipleFailuresError
-
throwError
-
headingFrom
-
tryBuildingMultipleFailuresError
private Optional<AssertionError> tryBuildingMultipleFailuresError(List<? extends Throwable> errorsCollected) -
tryBuildingMultipleFailuresError
private Optional<AssertionError> tryBuildingMultipleFailuresError(String heading, List<? extends Throwable> errorsCollected) -
extractFailuresOf
-