MultipleFailuresError is an AssertionError that aggregates
multiple failures thrown in a given context (i.e., typically within the
invocation of a single test).
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final List | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | MultipleFailuresError(String
the message heading; a default value will be used if
heading, List<? extends Throwable> null or blankthe list of failures; must not be failures)null or contain
null elementsConstructs an |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public String | getMessage()
Overrides java. |
| public boolean | |
| private static boolean | |
| private static String | |
| private static String |
| EOL | back to summary |
|---|---|
| private static final String EOL | |
| failures | back to summary |
|---|---|
| private final List<Throwable> failures | |
| heading | back to summary |
|---|---|
| private final String heading | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MultipleFailuresError | back to summary |
|---|---|
| public MultipleFailuresError(String heading, List<? extends Throwable> failures) Constructs an | |
| getFailures | back to summary |
|---|---|
| public List Returns the list of failures contained in this error. | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| hasFailures | back to summary |
|---|---|
| public boolean hasFailures() Returns whether this error contains any failures. | |
| isBlank | back to summary |
|---|---|
| private static boolean isBlank(String str) | |
| nullSafeMessage | back to summary |
|---|---|
| private static String nullSafeMessage(Throwable failure) | |
| pluralize | back to summary |
|---|---|
| private static String pluralize(int count, String singular, String plural) | |