Record Class TestResultDto
java.lang.Object
java.lang.Record
com.winchesters.devopsify.dto.response.TestResultDto
-
Constructor Summary
ConstructorsConstructorDescriptionTestResultDto
(int testsRun, int failures, int errors, int skipped) Creates an instance of aTestResultDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
errors()
Returns the value of theerrors
record component.int
failures()
Returns the value of thefailures
record component.final int
hashCode()
Returns a hash code value for this object.int
skipped()
Returns the value of theskipped
record component.int
testsRun()
Returns the value of thetestsRun
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TestResultDto
public TestResultDto(int testsRun, int failures, int errors, int skipped) Creates an instance of aTestResultDto
record class.- Parameters:
testsRun
- the value for thetestsRun
record componentfailures
- the value for thefailures
record componenterrors
- the value for theerrors
record componentskipped
- the value for theskipped
record 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. All components in this record class are compared with '=='. -
testsRun
public int testsRun()Returns the value of thetestsRun
record component.- Returns:
- the value of the
testsRun
record component
-
failures
public int failures()Returns the value of thefailures
record component.- Returns:
- the value of the
failures
record component
-
errors
public int errors()Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-
skipped
public int skipped()Returns the value of theskipped
record component.- Returns:
- the value of the
skipped
record component
-