Package hudson.tasks.junit
Record Class OpenTestReportConverter.TestRun
java.lang.Object
java.lang.Record
hudson.tasks.junit.OpenTestReportConverter.TestRun
- Record Components:
suites- its resultsunfinished- the tests it started that did not finish yet, asdescribed, which are not in its results
- Enclosing class:
OpenTestReportConverter
public static record OpenTestReportConverter.TestRun(List<SuiteResult> suites, Set<String> unfinished)
extends Record
The results of a test run.
-
Constructor Summary
ConstructorsConstructorDescriptionTestRun(List<SuiteResult> suites) TestRun(List<SuiteResult> suites, Set<String> unfinished) Creates an instance of aTestRunrecord 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.suites()Returns the value of thesuitesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunfinishedrecord component.
-
Constructor Details
-
TestRun
-
TestRun
Creates an instance of aTestRunrecord class.- Parameters:
suites- the value for thesuitesrecord componentunfinished- the value for theunfinishedrecord 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). -
suites
Returns the value of thesuitesrecord component.- Returns:
- the value of the
suitesrecord component
-
unfinished
Returns the value of theunfinishedrecord component.- Returns:
- the value of the
unfinishedrecord component
-