Class FeatureUtilities
java.lang.Object
org.codice.ddf.test.common.features.FeatureUtilities
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfeatureRepoToFeatureParameters(String featureFilePath) Converts the given feature file into a list of feature name parameters for parameterized testing.featureRepoToFeatureParameters(String featureFilePath, List<String> ignoredFeatures) Converts the given feature file into a list of feature name parameters for parameterized testing.getFeaturesFromFeatureRepo(String featureFilePath) Returns a list of feature names defined in a feature file.static FeatureCreates a feature object from the specified feature filestatic FeatureRepotoFeatureRepo(String filePath) Creates a feature repo object from the specified feature file
-
Field Details
-
FEATURE_NAME_XPATH
- See Also:
-
-
Method Details
-
getFeaturesFromFeatureRepo
Returns a list of feature names defined in a feature file.- Parameters:
featureFilePath-- Returns:
- feature names in feature file
-
featureRepoToFeatureParameters
Converts the given feature file into a list of feature name parameters for parameterized testing.- Parameters:
featureFilePath-- Returns:
- feature name parameters
-
featureRepoToFeatureParameters
public static List<Object[]> featureRepoToFeatureParameters(String featureFilePath, List<String> ignoredFeatures) Converts the given feature file into a list of feature name parameters for parameterized testing.- Parameters:
featureFilePath-ignoredFeatures- excludes the specified features from the parameters- Returns:
- feature name parameters
-
toFeatureRepo
Creates a feature repo object from the specified feature file- Parameters:
filePath-- Returns:
-
toFeature
Creates a feature object from the specified feature file- Parameters:
filePath-- Returns:
-