Record Class CaptureEvent.VerificationEvent
java.lang.Object
java.lang.Record
com.shaft.capture.model.CaptureEvent.VerificationEvent
- Record Components:
context- common event contextverification- verification kindtarget- optional targetexpected- optional external expected valuenegated- whether the verification is negated
- All Implemented Interfaces:
CaptureEvent
- Enclosing interface:
CaptureEvent
public static record CaptureEvent.VerificationEvent(EventContext context, CaptureEvent.VerificationKind verification, ElementSnapshot target, ExternalTestDataReference expected, boolean negated)
extends Record
implements CaptureEvent
Explicit verification event.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CaptureEvent
CaptureEvent.AlertAction, CaptureEvent.AlertEvent, CaptureEvent.ClearEvent, CaptureEvent.ClickEvent, CaptureEvent.FrameAction, CaptureEvent.FrameEvent, CaptureEvent.KeyboardEvent, CaptureEvent.MouseButton, CaptureEvent.NavigationAction, CaptureEvent.NavigationEvent, CaptureEvent.SelectEvent, CaptureEvent.SelectMode, CaptureEvent.ToggleEvent, CaptureEvent.TypeEvent, CaptureEvent.UploadEvent, CaptureEvent.VerificationEvent, CaptureEvent.VerificationKind, CaptureEvent.WaitCondition, CaptureEvent.WaitEvent, CaptureEvent.WindowAction, CaptureEvent.WindowEvent -
Constructor Summary
ConstructorsConstructorDescriptionVerificationEvent(EventContext context, CaptureEvent.VerificationKind verification, ElementSnapshot target, ExternalTestDataReference expected, boolean negated) Creates a verification event. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.expected()Returns the value of theexpectedrecord component.final inthashCode()Returns a hash code value for this object.booleannegated()Returns the value of thenegatedrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverificationrecord component.
-
Constructor Details
-
VerificationEvent
public VerificationEvent(EventContext context, CaptureEvent.VerificationKind verification, ElementSnapshot target, ExternalTestDataReference expected, boolean negated) Creates a verification event.
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
context
Returns the value of thecontextrecord component.- Specified by:
contextin interfaceCaptureEvent- Returns:
- the value of the
contextrecord component
-
verification
Returns the value of theverificationrecord component.- Returns:
- the value of the
verificationrecord component
-
target
-
expected
-
negated
-