Record Class AssertionFailed
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.AssertionFailed
- All Implemented Interfaces:
TestEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gtnewhorizons.horizonqa.api.event.TestEvent
TestEvent.Category -
Constructor Summary
ConstructorsConstructorDescriptionAssertionFailed(int tick, String message, String throwableType, TestPos failPos) Creates an instance of aAssertionFailedrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Coarse bucket; one ofTestEvent.Category.final booleanIndicates whether some other object is "equal to" this one.failPos()Returns the value of thefailPosrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.summary()Single-line human-readable description.Returns the value of thethrowableTyperecord component.inttick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssertionFailed
Creates an instance of aAssertionFailedrecord class.- Parameters:
tick- the value for thetickrecord componentmessage- the value for themessagerecord componentthrowableType- the value for thethrowableTyperecord componentfailPos- the value for thefailPosrecord component
-
-
Method Details
-
category
Description copied from interface:TestEventCoarse bucket; one ofTestEvent.Category. -
summary
Description copied from interface:TestEventSingle-line human-readable description. Reporters print this verbatim. -
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 '=='. -
tick
public int tick()Returns the value of thetickrecord component. -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
throwableType
Returns the value of thethrowableTyperecord component.- Returns:
- the value of the
throwableTyperecord component
-
failPos
Returns the value of thefailPosrecord component.- Returns:
- the value of the
failPosrecord component
-