Record Class TestCaseMetricsDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.testorchestrator.metrics.TestCaseMetricsDto
-
Constructor Summary
ConstructorsConstructorDescriptionTestCaseMetricsDto(String testCaseName, int totalTestRuns, int successfulTestRuns, int failedTestRuns, String averageSuccessDuration, String averageFailedDuration) Creates an instance of aTestCaseMetricsDtorecord 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.Returns the value of thetestCaseNamerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalTestRunsrecord component.
-
Constructor Details
-
TestCaseMetricsDto
public TestCaseMetricsDto(String testCaseName, int totalTestRuns, int successfulTestRuns, int failedTestRuns, String averageSuccessDuration, String averageFailedDuration) Creates an instance of aTestCaseMetricsDtorecord class.- Parameters:
testCaseName- the value for thetestCaseNamerecord componenttotalTestRuns- 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 '=='. -
testCaseName
Returns the value of thetestCaseNamerecord component.- Returns:
- the value of the
testCaseNamerecord component
-
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
-