Class FeatureUtilities

java.lang.Object
org.codice.ddf.test.common.features.FeatureUtilities

public class FeatureUtilities extends Object
  • Field Details

  • Method Details

    • getFeaturesFromFeatureRepo

      public static List<String> getFeaturesFromFeatureRepo(String featureFilePath)
      Returns a list of feature names defined in a feature file.
      Parameters:
      featureFilePath -
      Returns:
      feature names in feature file
    • featureRepoToFeatureParameters

      public static List<Object[]> featureRepoToFeatureParameters(String featureFilePath)
      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

      public static FeatureRepo toFeatureRepo(String filePath)
      Creates a feature repo object from the specified feature file
      Parameters:
      filePath -
      Returns:
    • toFeature

      public static Feature toFeature(String filePath, String feature)
      Creates a feature object from the specified feature file
      Parameters:
      filePath -
      Returns: