Record Class TestResultExtension.FlakyFailuresSummary
java.lang.Object
java.lang.Record
io.jenkins.plugins.mcp.server.extensions.TestResultExtension.FlakyFailuresSummary
- Enclosing class:
TestResultExtension
public static record TestResultExtension.FlakyFailuresSummary(int buildNumber, int flakyTestCount, int flakyFailureCount, List<TestResultExtension.FlakyTestSummary> flakyTests)
extends Record
Compact answer for
getFlakyFailures.-
Constructor Summary
ConstructorsConstructorDescriptionFlakyFailuresSummary(int buildNumber, int flakyTestCount, int flakyFailureCount, List<TestResultExtension.FlakyTestSummary> flakyTests) Creates an instance of aFlakyFailuresSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebuildNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theflakyFailureCountrecord component.intReturns the value of theflakyTestCountrecord component.Returns the value of theflakyTestsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlakyFailuresSummary
public FlakyFailuresSummary(int buildNumber, int flakyTestCount, int flakyFailureCount, List<TestResultExtension.FlakyTestSummary> flakyTests) Creates an instance of aFlakyFailuresSummaryrecord class.- Parameters:
buildNumber- the value for thebuildNumberrecord componentflakyTestCount- the value for theflakyTestCountrecord componentflakyFailureCount- the value for theflakyFailureCountrecord componentflakyTests- the value for theflakyTestsrecord 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 '=='. -
buildNumber
public int buildNumber()Returns the value of thebuildNumberrecord component.- Returns:
- the value of the
buildNumberrecord component
-
flakyTestCount
public int flakyTestCount()Returns the value of theflakyTestCountrecord component.- Returns:
- the value of the
flakyTestCountrecord component
-
flakyFailureCount
public int flakyFailureCount()Returns the value of theflakyFailureCountrecord component.- Returns:
- the value of the
flakyFailureCountrecord component
-
flakyTests
Returns the value of theflakyTestsrecord component.- Returns:
- the value of the
flakyTestsrecord component
-