Record Class ReportTest
java.lang.Object
java.lang.Record
org.apache.juneau.terminal.report.ReportTest
- Record Components:
suite- The suite name (a class name or a file path).name- The test name.status- The test status.ms- The duration in milliseconds, ornull .msg- The failure message, ornull .trace- The stack trace, ornull .
public record ReportTest(String suite, String name, TerminalEvent.TestStatus status, Long ms, String msg, String trace)
extends Record
One test recovered from a report.
A reader cannot build a TerminalEvent directly because a test event needs a step id, which the caller supplies
later through ReportResult.toEvents(String).
-
Constructor Summary
ConstructorsConstructorDescriptionReportTest(String suite, String name, TerminalEvent.TestStatus status, Long ms, String msg, String trace) Creates an instance of aReportTestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ms()Returns the value of themsrecord component.msg()Returns the value of themsgrecord component.name()Returns the value of thenamerecord component.status()Returns the value of thestatusrecord component.suite()Returns the value of thesuiterecord component.final StringtoString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.
-
Constructor Details
-
ReportTest
public ReportTest(String suite, String name, TerminalEvent.TestStatus status, Long ms, String msg, String trace) Creates an instance of aReportTestrecord class.
-
-
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
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). -
suite
Returns the value of thesuiterecord component.- Returns:
- the value of the
suiterecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
ms
Returns the value of themsrecord component.- Returns:
- the value of the
msrecord component
-
msg
Returns the value of themsgrecord component.- Returns:
- the value of the
msgrecord component
-
trace
Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-