Class FeaturesFromXMLFixture

Object
FeaturesFromXMLFixture

public class FeaturesFromXMLFixture extends Object
A fixture for creating feature lists and feature list providers from XML files.

This class provides utility methods to load and create feature-related objects from XML configurations for testing purposes.

  • Method Details

    • createFeatureList

      public static <T extends FeatureInput> FeatureList<T> createFeatureList(String xmlPath, TestLoader loader) throws CreateException
      Creates a feature list from an XML file.
      Type Parameters:
      T - the type of feature input
      Parameters:
      xmlPath - the path to the XML file containing the feature list configuration
      loader - the test loader to resolve the XML file path
      Returns:
      a feature list created from the XML configuration
      Throws:
      CreateException - if there's an error creating the feature list
    • createNamedFeatureProviders

      public static <T extends FeatureInput> List<NamedBean<FeatureListProvider<T>>> createNamedFeatureProviders(String xmlPath, TestLoader loader) throws CreateException
      Creates a list of named feature list providers from an XML file.
      Type Parameters:
      T - the type of feature input
      Parameters:
      xmlPath - the path to the XML file containing the named feature list provider configurations
      loader - the test loader to resolve the XML file path
      Returns:
      a list of named feature list providers created from the XML configuration
      Throws:
      CreateException - if there's an error creating the feature list providers