Record Class ScenarioInfo
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.gherkin.parser.ScenarioInfo
- Record Components:
featureTitle- the name of the enclosingFeature, e.g."User authentication"; used to group scenarios by feature in the generated reporttitle- the formatted scenario title, e.g."Scenario: User logs in"steps- the raw text of eachGiven/When/Then/And/Butstep in document order, with the keyword stripped; empty when the scenario has no steps
Immutable description of a single scenario parsed from a
.feature file.-
Constructor Summary
ConstructorsConstructorDescriptionScenarioInfo(String featureTitle, String title, List<String> steps) Defensively copiesstepsinto an immutable list. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureTitlerecord component.final inthashCode()Returns a hash code value for this object.steps()Returns the value of thestepsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScenarioInfo
Defensively copiesstepsinto an immutable list.
-
-
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). -
featureTitle
Returns the value of thefeatureTitlerecord component.- Returns:
- the value of the
featureTitlerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-