Record Class TestResultExtension.TestResultSummary
java.lang.Object
java.lang.Record
io.jenkins.plugins.mcp.server.extensions.TestResultExtension.TestResultSummary
- Enclosing class:
TestResultExtension
public static record TestResultExtension.TestResultSummary(int buildNumber, int totalCount, int failCount, int skipCount, int passCount, int flakyTestCount, List<TestResultExtension.FailedTestSummary> failedTests)
extends Record
Compact answer for
getTestResults: the counts, plus one entry per failing test.-
Constructor Summary
ConstructorsConstructorDescriptionTestResultSummary(int buildNumber, int totalCount, int failCount, int skipCount, int passCount, int flakyTestCount, List<TestResultExtension.FailedTestSummary> failedTests) Creates an instance of aTestResultSummaryrecord 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 thefailCountrecord component.Returns the value of thefailedTestsrecord component.intReturns the value of theflakyTestCountrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thepassCountrecord component.intReturns the value of theskipCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Constructor Details
-
TestResultSummary
public TestResultSummary(int buildNumber, int totalCount, int failCount, int skipCount, int passCount, int flakyTestCount, List<TestResultExtension.FailedTestSummary> failedTests) Creates an instance of aTestResultSummaryrecord class.- Parameters:
buildNumber- the value for thebuildNumberrecord componenttotalCount- the value for thetotalCountrecord componentfailCount- the value for thefailCountrecord componentskipCount- the value for theskipCountrecord componentpassCount- the value for thepassCountrecord componentflakyTestCount- the value for theflakyTestCountrecord componentfailedTests- the value for thefailedTestsrecord 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
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
failCount
public int failCount()Returns the value of thefailCountrecord component.- Returns:
- the value of the
failCountrecord component
-
skipCount
public int skipCount()Returns the value of theskipCountrecord component.- Returns:
- the value of the
skipCountrecord component
-
passCount
public int passCount()Returns the value of thepassCountrecord component.- Returns:
- the value of the
passCountrecord component
-
flakyTestCount
public int flakyTestCount()Returns the value of theflakyTestCountrecord component.- Returns:
- the value of the
flakyTestCountrecord component
-
failedTests
Returns the value of thefailedTestsrecord component.- Returns:
- the value of the
failedTestsrecord component
-