public static enum ReportComposer.Utils extends Enum<ReportComposer.Utils>
Modifier and Type | Method and Description |
---|---|
static Explanation |
composeExplanation(ReportComposer reportComposer,
String message,
List<EvaluationEntry> evaluationHistory)
Note that an exception thrown during an evaluation is normally caught by the framework.
|
static ReportComposer.FormattedEntry |
createFormattedEntryForActualValue(ReportComposer reportComposer,
EvaluationEntry entry) |
static ReportComposer.FormattedEntry |
createFormattedEntryForExpectation(ReportComposer reportComposer,
EvaluationEntry entry) |
static ReportComposer.Utils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReportComposer.Utils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ReportComposer.Utils[] values()
for (ReportComposer.Utils c : ReportComposer.Utils.values()) System.out.println(c);
public static ReportComposer.Utils valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Explanation composeExplanation(ReportComposer reportComposer, String message, List<EvaluationEntry> evaluationHistory)
Note that an exception thrown during an evaluation is normally caught by the framework.
message
- A message to be prepended to a summary.evaluationHistory
- An "evaluation history" object represented as a list of evaluation entries.public static ReportComposer.FormattedEntry createFormattedEntryForExpectation(ReportComposer reportComposer, EvaluationEntry entry)
public static ReportComposer.FormattedEntry createFormattedEntryForActualValue(ReportComposer reportComposer, EvaluationEntry entry)
Copyright © 2024. All rights reserved.