Record Class TestScriptDisplay.PhaseDisplay
java.lang.Object
java.lang.Record
org.fhirfrog.frog.testscriptrender.TestScriptDisplay.PhaseDisplay
- Record Components:
kind- which part of the TestScript this phase rendersname- "Setup"/"Teardown" for those phases, or the test's ownnamefor a test phasedescription- the phase's description narrative (only tests carry one in the FHIR model), ornullsteps- the operations and asserts in this phase, in declared order
- Enclosing class:
- TestScriptDisplay
public static record TestScriptDisplay.PhaseDisplay(TestScriptDisplay.PhaseKind kind, String name, String description, List<TestScriptDisplay.StepDisplay> steps)
extends Record
One phase of test execution:
setup, a single test entry, or teardown.-
Constructor Summary
ConstructorsConstructorDescriptionPhaseDisplay(TestScriptDisplay.PhaseKind kind, String name, String description, List<TestScriptDisplay.StepDisplay> steps) Creates an instance of aPhaseDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PhaseDisplay
public PhaseDisplay(TestScriptDisplay.PhaseKind kind, String name, String description, List<TestScriptDisplay.StepDisplay> steps) Creates an instance of aPhaseDisplayrecord class.- Parameters:
kind- the value for thekindrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentsteps- the value for thestepsrecord component
-
-
Method Details
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-