Class FaultCharacterizationAlgorithmFactoryLoader
- java.lang.Object
-
- de.rwth.swc.coffee4j.junit.engine.annotation.configuration.sequential.characterization.FaultCharacterizationAlgorithmFactoryLoader
-
- All Implemented Interfaces:
Loader<Optional<FaultCharacterizationAlgorithmFactory>>
public class FaultCharacterizationAlgorithmFactoryLoader extends Object implements Loader<Optional<FaultCharacterizationAlgorithmFactory>>
Class for loading the defined fault characterization characterization for aCombinatorialTest
. At most one annotation ofFaultCharacterizationAlgorithmFactorySource
is needed for this to find. SinceFaultCharacterizationAlgorithmFactorySource
is inherited, any inheriting annotation such asEnableFaultCharacterization
can also be found by this loader. If no annotation is given, the an empty optional is returned and no fault characterization will be used in the correspondingCombinatorialTest
.This is used by
DelegatingConfigurationProvider
to provide a configuration.
-
-
Constructor Summary
Constructors Constructor Description FaultCharacterizationAlgorithmFactoryLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<FaultCharacterizationAlgorithmFactory>
load(Method method)
Loads a T based on the class
-
-
-
Method Detail
-
load
public Optional<FaultCharacterizationAlgorithmFactory> load(Method method)
Description copied from interface:Loader
Loads a T based on the classInitializes the provider with the necessary annotation located somewhere on the class beforehand
- Specified by:
load
in interfaceLoader<Optional<FaultCharacterizationAlgorithmFactory>>
- Parameters:
method
- the method from which the information should be loaded- Returns:
- the loaded object
-
-