public class FeatureReader extends Object
gremlin-test and extracts Gremlin examples.| Constructor and Description |
|---|
FeatureReader() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
parseFlat(String featureDir)
Parses features to a
List of Gremlin strings. |
static List<String> |
parseFlat(String featureDir,
List<org.javatuples.Pair<Pattern,BiFunction<String,String,String>>> parameterMatchers)
Parses features to a
List of Gremlin strings. |
static Map<String,List<String>> |
parseGrouped(String featureDir)
Parses features to a
Map structure of the test name as the key with a List of Gremlin strings
for the value. |
static Map<String,List<String>> |
parseGrouped(String featureDir,
List<org.javatuples.Pair<Pattern,BiFunction<String,String,String>>> parameterMatchers)
Parses features to a
Map structure of the test name as the key with a List of Gremlin strings
for the value. |
public static List<String> parseFlat(String featureDir) throws IOException
List of Gremlin strings.featureDir - The root directory where feature files can be found including subdirectoriesIOExceptionpublic static List<String> parseFlat(String featureDir, List<org.javatuples.Pair<Pattern,BiFunction<String,String,String>>> parameterMatchers) throws IOException
List of Gremlin strings.featureDir - The root directory where feature files can be found including subdirectoriesparameterMatchers - list of pattern/functions that will transform a parameter from its Gherkin form to
another format triggering that new formatted string to be inserted into the Gremlin
itselfIOExceptionpublic static Map<String,List<String>> parseGrouped(String featureDir) throws IOException
Map structure of the test name as the key with a List of Gremlin strings
for the value.featureDir - The root directory where feature files can be found including subdirectoriesIOExceptionpublic static Map<String,List<String>> parseGrouped(String featureDir, List<org.javatuples.Pair<Pattern,BiFunction<String,String,String>>> parameterMatchers) throws IOException
Map structure of the test name as the key with a List of Gremlin strings
for the value.featureDir - The root directory where feature files can be found including subdirectoriesparameterMatchers - list of pattern/functions that will transform a parameter from its Gherkin form to
another format triggering that new formatted string to be inserted into the Gremlin
itselfIOExceptionCopyright © 2013–2022 Apache Software Foundation. All rights reserved.