Package io.karatelabs.junit6
Record Class TestEvent.FeatureStart
java.lang.Object
java.lang.Record
io.karatelabs.junit6.TestEvent.FeatureStart
- All Implemented Interfaces:
TestEvent
- Enclosing interface:
TestEvent
public static record TestEvent.FeatureStart(io.karatelabs.gherkin.Feature feature)
extends Record
implements TestEvent
Fired when a feature starts execution.
Used in hierarchical mode to create DynamicContainer boundaries.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.karatelabs.junit6.TestEvent
TestEvent.FeatureEnd, TestEvent.FeatureStart, TestEvent.ScenarioEnd, TestEvent.SuiteEnd -
Constructor Summary
ConstructorsConstructorDescriptionFeatureStart(io.karatelabs.gherkin.Feature feature) Creates an instance of aFeatureStartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.io.karatelabs.gherkin.Featurefeature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FeatureStart
public FeatureStart(io.karatelabs.gherkin.Feature feature) Creates an instance of aFeatureStartrecord class.- Parameters:
feature- the value for thefeaturerecord 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). -
feature
public io.karatelabs.gherkin.Feature feature()Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-