Package se.diabol.jenkins.pipeline.model
Record Class TestSummary
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.model.TestSummary
@ExportedBean(defaultVisibility=100)
public record TestSummary(String name, String url, int total, int failed, int skipped)
extends Record
Test result counts of a build.
-
Constructor Summary
ConstructorsConstructorDescriptionTestSummary(String name, String url, int total, int failed, int skipped) Creates an instance of aTestSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intskipped()Returns the value of theskippedrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
TestSummary
Creates an instance of aTestSummaryrecord class.- Parameters:
name- the value for thenamerecord componenturl- the value for theurlrecord componenttotal- the value for thetotalrecord componentfailed- the value for thefailedrecord componentskipped- the value for theskippedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
total
@Exported public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
failed
@Exported public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
skipped
@Exported public int skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-