Package org.assertj.core.error
Class MultipleAssertionsError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- org.assertj.core.error.MultipleAssertionsError
-
- All Implemented Interfaces:
Serializable
public class MultipleAssertionsError extends AssertionError
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private List<? extends AssertionError>
errors
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MultipleAssertionsError(List<? extends AssertionError> errors)
MultipleAssertionsError(Description description, List<? extends AssertionError> errors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static String
createMessage(List<? extends AssertionError> errors)
private static String
formatDescription(Description description)
List<? extends AssertionError>
getErrors()
Returns the causal AssertionErrors in the order that they were thrown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
errors
private final List<? extends AssertionError> errors
-
-
Constructor Detail
-
MultipleAssertionsError
public MultipleAssertionsError(List<? extends AssertionError> errors)
-
MultipleAssertionsError
public MultipleAssertionsError(Description description, List<? extends AssertionError> errors)
-
-
Method Detail
-
getErrors
public List<? extends AssertionError> getErrors()
Returns the causal AssertionErrors in the order that they were thrown.- Returns:
- the list of errors
-
formatDescription
private static String formatDescription(Description description)
-
createMessage
private static String createMessage(List<? extends AssertionError> errors)
-
-