Record Class ReportResult
java.lang.Object
java.lang.Record
org.apache.juneau.terminal.report.ReportResult
- Record Components:
fw- The framework key.tests- The recovered tests, in report order.warnings- Human-readable warnings, for examplereport truncated: unexpected end of file after 4120 tests .truncated- Whether the file ended early or the test limit was hit.skippedFiles- The number of files that were not read (over the size limit, unreadable).
public record ReportResult(String fw, List<ReportTest> tests, List<String> warnings, boolean truncated, int skippedFiles)
extends Record
What a
ReportReader recovered from a report.-
Constructor Summary
ConstructorsConstructorDescriptionReportResult(String fw, List<ReportTest> tests, List<String> warnings, boolean truncated, int skippedFiles) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fw()Returns the value of thefwrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theskippedFilesrecord component.tests()Returns the value of thetestsrecord component.Returns the events a producer appends at the end of a step.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
ReportResult
public ReportResult(String fw, List<ReportTest> tests, List<String> warnings, boolean truncated, int skippedFiles) Constructor.- Parameters:
fw- The framework key.tests- The recovered tests.warnings- Human-readable warnings.truncated- Whether the file ended early or the test limit was hit.skippedFiles- The number of files that were not read.
-
-
Method Details
-
toEvents
Returns the events a producer appends at the end of a step.The sequence is a
replace for the step, onetest per recovered test, then onewarn note per warning. When no test was recovered and there are warnings, only the notes are returned, so the step keeps its livesuite placeholders. A valid but empty report yields just thereplace .- Parameters:
step- The id of the step the results belong to.- Returns:
- The events, not yet numbered.
-
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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fw
Returns the value of thefwrecord component.- Returns:
- the value of the
fwrecord component
-
tests
Returns the value of thetestsrecord component.- Returns:
- the value of the
testsrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-
truncated
Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-
skippedFiles
Returns the value of theskippedFilesrecord component.- Returns:
- the value of the
skippedFilesrecord component
-