Record Class ConformanceReport
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.testing.ConformanceReport
- Record Components:
scenarios- one result per scenario, in run order
Results of a conformance run.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of one scenario.static enumOutcome of a scenario or step.static final recordResult of one step. -
Constructor Summary
ConstructorsConstructorDescriptionConformanceReport(List<ConformanceReport.ScenarioResult> scenarios) Creates a report; the list is copied. -
Method Summary
Modifier and TypeMethodDescriptionvoidThrows when any scenario failed.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanpassed()Returns whether no scenario failed.Returns the value of thescenariosrecord component.summary()Returns a multi-line summary listing every scenario.final StringtoString()Returns a string representation of this record class.with(ConformanceReport.Status status) Returns the scenarios with a status.
-
Constructor Details
-
ConformanceReport
Creates a report; the list is copied.- Parameters:
scenarios- results
-
-
Method Details
-
with
Returns the scenarios with a status.- Parameters:
status- outcome- Returns:
- matching results
-
passed
public boolean passed()Returns whether no scenario failed.- Returns:
- true when every scenario passed or was skipped
-
summary
Returns a multi-line summary listing every scenario.- Returns:
- the summary
-
assertPassed
public void assertPassed()Throws when any scenario failed.- Throws:
AssertionError- listing the failures
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
scenarios
Returns the value of thescenariosrecord component.- Returns:
- the value of the
scenariosrecord component
-