Enum Class IndexingMode
- All Implemented Interfaces:
Serializable,Comparable<IndexingMode>,Constable
Controls whether
Feature/Scenario titles are numbered directly in the source
.feature files, as configured via the indexing DSL property.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoth features and scenarios are numbered.Every feature is numbered, in the order its feature file is processed in - seeGherkinToAsciidocExtension#getIndexing()for exactly what that order is - e.g.Nothing is numbered.Every scenario is numbered, continuously across all feature files, in the same file processing order asFEATURE, e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexingModeReturns the enum constant of this class with the specified name.static IndexingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
Nothing is numbered. Any numbering left over from a previous run is removed. -
FEATURE
Every feature is numbered, in the order its feature file is processed in - seeGherkinToAsciidocExtension#getIndexing()for exactly what that order is - e.g.Feature: 1 - User authentication. -
SCENARIO
Every scenario is numbered, continuously across all feature files, in the same file processing order asFEATURE, e.g.Scenario: 1 - User logs in. -
ALL
Both features and scenarios are numbered. Scenarios are numbered per feature as<featureNumber>.<scenarioNumber>, e.g.Scenario: 1.1 - User logs inwithinFeature: 1 - User authentication.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-