Package io.karatelabs.junit6
Record Class TestEvent.FeatureEnd
java.lang.Object
java.lang.Record
io.karatelabs.junit6.TestEvent.FeatureEnd
- All Implemented Interfaces:
TestEvent
- Enclosing interface:
TestEvent
public static record TestEvent.FeatureEnd(io.karatelabs.core.FeatureResult result)
extends Record
implements TestEvent
Fired when a feature completes execution.
In hierarchical mode, triggers creation of a DynamicContainer with all scenario results.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.karatelabs.junit6.TestEvent
TestEvent.FeatureEnd, TestEvent.FeatureStart, TestEvent.ScenarioEnd, TestEvent.SuiteEnd -
Constructor Summary
ConstructorsConstructorDescriptionFeatureEnd(io.karatelabs.core.FeatureResult result) Creates an instance of aFeatureEndrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.karatelabs.core.FeatureResultresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FeatureEnd
public FeatureEnd(io.karatelabs.core.FeatureResult result) Creates an instance of aFeatureEndrecord class.- Parameters:
result- the value for theresultrecord 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 withObjects::equals(Object,Object). -
result
public io.karatelabs.core.FeatureResult result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-