Class FeaturesFromXMLFixture
Object
FeaturesFromXMLFixture
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 Summary
Modifier and TypeMethodDescriptionstatic <T extends FeatureInput>
FeatureList<T> createFeatureList
(String xmlPath, TestLoader loader) Creates a feature list from an XML file.static <T extends FeatureInput>
List<NamedBean<FeatureListProvider<T>>> createNamedFeatureProviders
(String xmlPath, TestLoader loader) Creates a list of named feature list providers from an XML file.
-
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 configurationloader
- 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 configurationsloader
- 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
-