Class ParameterExtractorService


  • public class ParameterExtractorService
    extends java.lang.Object
    Service that orchestrates parameter extraction from parameterized tests using direct annotation mapping. Automatically selects the appropriate handler based on test method annotations.
    • Constructor Detail

      • ParameterExtractorService

        public ParameterExtractorService()
      • ParameterExtractorService

        public ParameterExtractorService​(ParameterHandlerRegistry handlerRegistry)
        Constructor for testing with custom handler registry.
        Parameters:
        handlerRegistry - the custom handler registry
    • Method Detail

      • extractParameters

        public java.lang.Object extractParameters​(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
        Extracts parameters from a parameterized test using the appropriate strategy.
        Parameters:
        extensionContext - the JUnit extension context
        Returns:
        extracted parameter object (single value or Map), or null if extraction fails
      • getHandlerRegistry

        public ParameterHandlerRegistry getHandlerRegistry()
        Gets the handler registry for testing purposes.
        Returns:
        the handler registry instance