Package ch.rswk.util.web.test
Record Class AbstractWebDriver.QunitResult
java.lang.Object
java.lang.Record
ch.rswk.util.web.test.AbstractWebDriver.QunitResult
- Enclosing class:
AbstractWebDriver
protected static record AbstractWebDriver.QunitResult(int passed, int total, int failed)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
QunitResult
(int passed, int total, int failed) Creates an instance of aQunitResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
failed()
Returns the value of thefailed
record component.final int
hashCode()
Returns a hash code value for this object.int
passed()
Returns the value of thepassed
record component.final String
toString()
Returns a string representation of this record class.int
total()
Returns the value of thetotal
record component.
-
Field Details
-
passed
private final int passedThe field for thepassed
record component. -
total
private final int totalThe field for thetotal
record component. -
failed
private final int failedThe field for thefailed
record component.
-
-
Constructor Details
-
QunitResult
protected QunitResult(int passed, int total, int failed) Creates an instance of aQunitResult
record class.- Parameters:
passed
- the value for thepassed
record componenttotal
- the value for thetotal
record componentfailed
- the value for thefailed
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 '=='. -
passed
public int passed()Returns the value of thepassed
record component.- Returns:
- the value of the
passed
record component
-
total
public int total()Returns the value of thetotal
record component.- Returns:
- the value of the
total
record component
-
failed
public int failed()Returns the value of thefailed
record component.- Returns:
- the value of the
failed
record component
-