Record Class TestSuite
java.lang.Object
java.lang.Record
co.elastic.gradle.buildscan.xunit.TestSuite
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendTime(Supplier<LocalDateTime> defaultStartTime) final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.failures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.skipped()Returns the value of theskippedrecord component.startedTime(Supplier<LocalDateTime> defaultStartTime) tests()Returns the value of thetestsrecord component.time()Returns the value of thetimerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestSuite
public TestSuite(String name, Integer errors, Integer failures, Integer skipped, LocalDateTime timestamp, Double time, List<TestCase> tests) Creates an instance of aTestSuiterecord class.- Parameters:
name- the value for thenamerecord componenterrors- the value for theerrorsrecord componentfailures- the value for thefailuresrecord componentskipped- the value for theskippedrecord componenttimestamp- the value for thetimestamprecord componenttime- the value for thetimerecord componenttests- the value for thetestsrecord component
-
-
Method Details
-
startedTime
-
endTime
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
failures
Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-
skipped
Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
tests
Returns the value of thetestsrecord component.- Returns:
- the value of the
testsrecord component
-