Record Class TestRunMetricsDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.testorchestrator.metrics.TestRunMetricsDto
-
Constructor Summary
ConstructorsConstructorDescriptionTestRunMetricsDto(int totalTestRuns, int successfulTestRuns, int failedTestRuns, Duration averageSuccessDuration, Duration averageFailedDuration) Creates an instance of aTestRunMetricsDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaverageFailedDurationrecord component.Returns the value of theaverageSuccessDurationrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedTestRunsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thesuccessfulTestRunsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalTestRunsrecord component.
-
Constructor Details
-
TestRunMetricsDto
public TestRunMetricsDto(int totalTestRuns, int successfulTestRuns, int failedTestRuns, Duration averageSuccessDuration, Duration averageFailedDuration) Creates an instance of aTestRunMetricsDtorecord class.- Parameters:
totalTestRuns- the value for thetotalTestRunsrecord componentsuccessfulTestRuns- the value for thesuccessfulTestRunsrecord componentfailedTestRuns- the value for thefailedTestRunsrecord componentaverageSuccessDuration- the value for theaverageSuccessDurationrecord componentaverageFailedDuration- the value for theaverageFailedDurationrecord 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 '=='. -
totalTestRuns
public int totalTestRuns()Returns the value of thetotalTestRunsrecord component.- Returns:
- the value of the
totalTestRunsrecord component
-
successfulTestRuns
public int successfulTestRuns()Returns the value of thesuccessfulTestRunsrecord component.- Returns:
- the value of the
successfulTestRunsrecord component
-
failedTestRuns
public int failedTestRuns()Returns the value of thefailedTestRunsrecord component.- Returns:
- the value of the
failedTestRunsrecord component
-
averageSuccessDuration
Returns the value of theaverageSuccessDurationrecord component.- Returns:
- the value of the
averageSuccessDurationrecord component
-
averageFailedDuration
Returns the value of theaverageFailedDurationrecord component.- Returns:
- the value of the
averageFailedDurationrecord component
-