public class ParameterUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<com.epam.ta.reportportal.ws.model.ParameterResource> |
getParameters(java.lang.reflect.Executable method,
java.util.List<java.lang.Object> parameterValues)
Read all parameters from a method or a constructor and converts in into a list of
ParameterResource. |
static java.lang.Class<?> |
toBoxedType(java.lang.Class<?> primitiveType)
Converts primitive type to a corresponding boxed class, or returns the same instance if the input is not primitive.
|
@Nonnull
public static java.util.List<com.epam.ta.reportportal.ws.model.ParameterResource> getParameters(@Nonnull
java.lang.reflect.Executable method,
java.util.List<java.lang.Object> parameterValues)
ParameterResource.
Respects ParameterKey annotation.method - a method to read parametersparameterValues - a source of parameter valuespublic static java.lang.Class<?> toBoxedType(@Nonnull
java.lang.Class<?> primitiveType)
primitiveType - a class which needs to be boxed