Package org.assertj.core.error
Class AssertionErrorCreator
- java.lang.Object
-
- org.assertj.core.error.AssertionErrorCreator
-
public class AssertionErrorCreator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConstructorInvoker
constructorInvoker
private static Class<?>[]
MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERROR
private static Class<?>[]
MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPES
-
Constructor Summary
Constructors Constructor Description AssertionErrorCreator()
AssertionErrorCreator(ConstructorInvoker constructorInvoker)
-
Method Summary
-
-
-
Field Detail
-
MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERROR
private static final Class<?>[] MSG_ARG_TYPES_FOR_ASSERTION_FAILED_ERROR
-
MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPES
private static final Class<?>[] MULTIPLE_FAILURES_ERROR_ARGUMENT_TYPES
-
constructorInvoker
ConstructorInvoker constructorInvoker
-
-
Constructor Detail
-
AssertionErrorCreator
public AssertionErrorCreator()
-
AssertionErrorCreator
public AssertionErrorCreator(ConstructorInvoker constructorInvoker)
-
-
Method Detail
-
assertionError
public AssertionError assertionError(String message, Object actual, Object expected)
-
assertionFailedError
private Optional<AssertionError> assertionFailedError(String message, Object actual, Object expected)
-
assertionError
private static AssertionError assertionError(String message)
-
multipleSoftAssertionsError
public AssertionError multipleSoftAssertionsError(List<? extends Throwable> errors)
-
multipleAssertionsError
public AssertionError multipleAssertionsError(Description description, List<? extends AssertionError> errors)
-
tryThrowingMultipleFailuresError
public void tryThrowingMultipleFailuresError(List<? extends Throwable> errorsCollected)
-
throwError
private static void throwError(AssertionError error)
-
headingFrom
private static String headingFrom(Description description)
-
tryBuildingMultipleFailuresError
private Optional<AssertionError> tryBuildingMultipleFailuresError(List<? extends Throwable> errorsCollected)
-
tryBuildingMultipleFailuresError
private Optional<AssertionError> tryBuildingMultipleFailuresError(String heading, List<? extends Throwable> errorsCollected)
-
-