Package org.fhirfrog.frog.rendering
Record Class TestReportRow
java.lang.Object
java.lang.Record
org.fhirfrog.frog.rendering.TestReportRow
- Record Components:
testScriptName- the containingTestReport's own name - a report-level renderer walking several reports uses this to know which script a row belongs tophase-"Setup","Teardown", or the named test case (TestReport.test[].name) a row came fromkind-"operation"or"assert"- which half of aSetupActionComponent/TestActionComponentthis isdetail- the operation's or assertion's owndetailfield (often the most specific human-readable identifier FHIR gives an individual step),nullif not setresult-TestReportActionResult's code (e.g."pass","fail","skip"), nevernullmessage- the operation's or assertion's ownmessage,nullif not set
public record TestReportRow(String testScriptName, String phase, String kind, String detail, String result, String message)
extends Record
One operation or assertion within a
TestReport, flattened for the row/table-based
renderers (Excel, CSV, Markdown, JUnit XML) - each of those needs the same shape, just encoded
differently, so the TestReport-walking logic lives once in TestReportRowExtractor
rather than being repeated per format.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisPass()kind()Returns the value of thekindrecord component.message()Returns the value of themessagerecord component.phase()Returns the value of thephaserecord component.result()Returns the value of theresultrecord component.Returns the value of thetestScriptNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestReportRow
public TestReportRow(String testScriptName, String phase, String kind, String detail, String result, String message) Creates an instance of aTestReportRowrecord class.- Parameters:
testScriptName- the value for thetestScriptNamerecord componentphase- the value for thephaserecord componentkind- the value for thekindrecord componentdetail- the value for thedetailrecord componentresult- the value for theresultrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
isPass
public boolean isPass() -
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). -
testScriptName
Returns the value of thetestScriptNamerecord component.- Returns:
- the value of the
testScriptNamerecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-