Package io.qameta.allure.util
Class ParameterUtils
java.lang.Object
io.qameta.allure.util.ParameterUtils
Utility methods for converting Java method arguments into Allure parameters.
Aspect and framework integrations use this class to apply Param metadata, excluded flags, modes, and display names consistently.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.qameta.allure.model.ParametercreateParameter(AnnotatedElement parameter, Object value, String defaultName) Creates and returns the parameter.static io.qameta.allure.model.ParametercreateParameter(Parameter parameter, Object value) Creates and returns the parameter using the Java reflection parameter name as a fallback.static List<io.qameta.allure.model.Parameter> createParameters(Method method, Object... args) Creates and returns the parameters.
-
Method Details
-
createParameters
public static List<io.qameta.allure.model.Parameter> createParameters(Method method, Object... args) Creates and returns the parameters.- Parameters:
method- the framework or Java method to inspectargs- the args- Returns:
- the parameters
-
createParameter
Creates and returns the parameter using the Java reflection parameter name as a fallback.- Parameters:
parameter- the Java parameter to inspectvalue- the value- Returns:
- the parameter
-
createParameter
public static io.qameta.allure.model.Parameter createParameter(AnnotatedElement parameter, Object value, String defaultName) Creates and returns the parameter.- Parameters:
parameter- the parameter declaration site to inspect — a method or constructor parameter, or a fieldvalue- the valuedefaultName- the name to use whenParamdoes not override it- Returns:
- the parameter
-