Home
last modified time | relevance | path

Searched refs:paramset (Results 1 – 1 of 1) sorted by relevance

/external/junit-params/src/main/java/junitparams/internal/
DInvokeParameterisedMethod.java54 Object[] paramset = Utils.safelyCastParamsToArray(params); in castParamsFromObjects() local
57 return castParamsUsingConverters(paramset); in castParamsFromObjects()
61 Class<?>[] typesOfParameters = createArrayOfTypesOf(paramset); in castParamsFromObjects()
62 … Object resultParam = createObjectOfExpectedTypeBasedOnParams(paramset, typesOfParameters); in castParamsFromObjects()
67 …private Object createObjectOfExpectedTypeBasedOnParams(Object[] paramset, Class<?>[] typesOfParame… in createObjectOfExpectedTypeBasedOnParams() argument
72 resultParam = Array.newInstance(typesOfParameters[0], paramset.length); in createObjectOfExpectedTypeBasedOnParams()
73 for (int i = 0; i < paramset.length; i++) { in createObjectOfExpectedTypeBasedOnParams()
74 ((Object[]) resultParam)[i] = paramset[i]; in createObjectOfExpectedTypeBasedOnParams()
77 …tMethod.getMethod().getParameterTypes()[0].getConstructor(typesOfParameters).newInstance(paramset); in createObjectOfExpectedTypeBasedOnParams()
86 private Class<?>[] createArrayOfTypesOf(Object[] paramset) { in createArrayOfTypesOf() argument
[all …]