Interface ParameterExtractionHandler
-
- All Known Implementing Classes:
AbstractParameterExtractionHandler,ArgumentsSourceHandler,CsvFileSourceHandler,CsvSourceHandler,EmptySourceHandler,EnumSourceHandler,MethodSourceHandler,NullAndEmptySourceHandler,NullSourceHandler,ValueSourceHandler
public interface ParameterExtractionHandlerStrategy interface for extracting parameters from different types of JUnit parameterized test annotations. Each implementation handles parameter extraction for a specific annotation type (e.g., @ValueSource, @CsvSource).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectextractParameters(ParameterExtractionContext context)Extracts parameters from the test method using this strategy's specific logic.java.lang.StringgetStrategyName()Gets the name of this strategy for debugging and logging purposes.
-
-
-
Method Detail
-
extractParameters
java.lang.Object extractParameters(ParameterExtractionContext context)
Extracts parameters from the test method using this strategy's specific logic.- Parameters:
context- the parameter extraction context containing test method and annotations- Returns:
- extracted parameter value (single value for simple params, Map for multiple params), or null if extraction fails
- Throws:
ParameterExtractionException- if parameter extraction encounters an error
-
getStrategyName
java.lang.String getStrategyName()
Gets the name of this strategy for debugging and logging purposes.- Returns:
- human-readable strategy name
-
-