Top Fields Constructors Methods
org.assertj.core.error

public Class AssertionErrorCreator

extends Object
Class Inheritance
Static Imports
org.assertj.core.util.Arrays.array, .Throwables.describeErrors

Field Summary

Modifier and TypeField and Description
pack-priv ConstructorInvoker
private static final Class<?>[]
private static final Class<?>[]
private static final Class<?>[]

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public AssertionError
assertionError(String message, Object actual, Object expected, Representation representation)

public AssertionError
private Optional<AssertionError>
assertionFailedError(String message, Object actual, Object expected)

private Optional<AssertionError>
comparisonFailure(String message, Object actual, Object expected, Representation representation)

private static List<Throwable>
extractFailuresOf(Object multipleFailuresError)

private static String
headingFrom(Description description)

public AssertionError
multipleAssertionsError(Description description, List<? extends AssertionError> errors)

public AssertionError
private static void
private Optional<AssertionError>
tryBuildingMultipleFailuresError(List<? extends Throwable> errorsCollected)

private Optional<AssertionError>
tryBuildingMultipleFailuresError(String heading, List<? extends Throwable> errorsCollected)

public void
tryThrowingMultipleFailuresError(List<? extends Throwable> errorsCollected)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorInvokerback to summary
pack-priv ConstructorInvoker constructorInvoker
Annotations
@VisibleForTesting
MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERRORback to summary
private static final Class<?>[] MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERROR
MSG_ARG_TYPES_FOR_COMPARISON_FAILUREback to summary
private static final Class<?>[] MSG_ARG_TYPES_FOR_COMPARISON_FAILURE
MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPESback to summary
private static final Class<?>[] MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPES

Constructor Detail

AssertionErrorCreatorback to summary
public AssertionErrorCreator()
AssertionErrorCreatorback to summary
public AssertionErrorCreator(ConstructorInvoker constructorInvoker)

Method Detail

assertionErrorback to summary
public AssertionError assertionError(String message, Object actual, Object expected, Representation representation)
assertionErrorback to summary
public AssertionError assertionError(String message)
assertionFailedErrorback to summary
private Optional<AssertionError> assertionFailedError(String message, Object actual, Object expected)
comparisonFailureback to summary
private Optional<AssertionError> comparisonFailure(String message, Object actual, Object expected, Representation representation)
extractFailuresOfback to summary
private static List<Throwable> extractFailuresOf(Object multipleFailuresError)
Annotations
@SuppressWarnings:unchecked
headingFromback to summary
private static String headingFrom(Description description)
multipleAssertionsErrorback to summary
public AssertionError multipleAssertionsError(Description description, List<? extends AssertionError> errors)
multipleSoftAssertionsErrorback to summary
public AssertionError multipleSoftAssertionsError(List<? extends Throwable> errors)
throwErrorback to summary
private static void throwError(AssertionError error)
tryBuildingMultipleFailuresErrorback to summary
private Optional<AssertionError> tryBuildingMultipleFailuresError(List<? extends Throwable> errorsCollected)
tryBuildingMultipleFailuresErrorback to summary
private Optional<AssertionError> tryBuildingMultipleFailuresError(String heading, List<? extends Throwable> errorsCollected)
tryThrowingMultipleFailuresErrorback to summary
public void tryThrowingMultipleFailuresError(List<? extends Throwable> errorsCollected)