public class MultipleFailuresError extends AssertionError
MultipleFailuresError
is an AssertionError
that aggregates
multiple failures thrown in a given context (i.e., typically within the
invocation of a single test).Constructor and Description |
---|
MultipleFailuresError(String heading,
List<? extends Throwable> failures)
Constructs an
MultipleFailuresError with the supplied heading and
failures. |
Modifier and Type | Method and Description |
---|---|
List<Throwable> |
getFailures()
Returns the list of failures contained in this error.
|
String |
getMessage() |
boolean |
hasFailures()
Returns whether this error contains any failures.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MultipleFailuresError(String heading, List<? extends Throwable> failures)
MultipleFailuresError
with the supplied heading and
failures.heading
- the message heading; a default value will be used if
null
or blankfailures
- the list of failures; must not be null
or contain
null
elementspublic String getMessage()
getMessage
in class Throwable
public List<Throwable> getFailures()
public boolean hasFailures()
Copyright © 2020. All rights reserved.