Record Class TestResultExtension.FailedTestSummary
java.lang.Object
java.lang.Record
io.jenkins.plugins.mcp.server.extensions.TestResultExtension.FailedTestSummary
- Enclosing class:
TestResultExtension
public static record TestResultExtension.FailedTestSummary(String className, String testName, String errorDetails, int age)
extends Record
One failing test in a summary.
age is the number of consecutive builds it has been
failing, so 1 means it broke in this build.-
Constructor Summary
ConstructorsConstructorDescriptionFailedTestSummary(String className, String testName, String errorDetails, int age) Creates an instance of aFailedTestSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintage()Returns the value of theagerecord component.Returns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorDetailsrecord component.final inthashCode()Returns a hash code value for this object.testName()Returns the value of thetestNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FailedTestSummary
Creates an instance of aFailedTestSummaryrecord class.- Parameters:
className- the value for theclassNamerecord componenttestName- the value for thetestNamerecord componenterrorDetails- the value for theerrorDetailsrecord componentage- the value for theagerecord 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 '=='. -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
testName
Returns the value of thetestNamerecord component.- Returns:
- the value of the
testNamerecord component
-
errorDetails
Returns the value of theerrorDetailsrecord component.- Returns:
- the value of the
errorDetailsrecord component
-
age
public int age()Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-