| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Parameters.
Store the result of parameterTypes and optionalValues after filter out injected types |
| public static class | Parameters.
A parameter passing helper class. |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private static final List | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static boolean | |
| private static void | checkParameterTypes(String methodName, Class<?>[] parameterTypes, String methodAnnotation, String[] parameterNames)
|
| public static Object[] | createConfigurationParameters(Method
the configuraton method m, Map<String, String> params, Object[] parameterValues, ITestNGMethod the current @Test method or currentTestMethod, IAnnotationFinder null if no @Test is available
(this is not only in case the configuration method is a @Before/@AfterMethodthe annotation finder finder, XmlSuite xmlSuite, ITestContext ctx, ITestResult testResult)Creates the parameters needed for the specified |
| public static Object[] | createInstantiationParameters(Constructor<?> ctor, String methodAnnotation, IAnnotationFinder finder, String[] parameterNames, Map<String, String> params, XmlSuite xmlSuite)
Creates the parameters needed for constructing a test class instance. |
| private static Object[] | createParameters(ConstructorOrMethod m, Parameters.
|
| private static Object[] | createParametersForConstructor(Constructor<?> constructor, Class<?>[] parameterTypes, String[] optionalValues, String methodAnnotation, String[] parameterNames, Parameters.
|
| private static Object[] | Returns: An array of parameters suitable to invoke this method, possibly picked from the property file
|
| private static List | createParams(String name, String prefix, String methodAnnotation, Class<?>[] parameterTypes, String[] optionalValues, String[] parameterNames, Parameters.
|
| private static String[] | |
| private static Parameter[] | |
| pack-priv static Parameters. | Returns: FilterOutInjectedTypesResult- The parameter types to be used parameterTypes, String[] - The optional values to be considered. optionalValues)Remove injected types from parameterTypes and optionalValues |
| private static IDataProviderMethod | findDataProvider(ITestObjectFactory objectFactory, Object instance, ITestClass clazz, ConstructorOrMethod m, IAnnotationFinder finder, ITestContext context)
|
| private static IDataProviderMethod | findDataProvider(ITestObjectFactory objectFactory, Object instance, ITestClass clazz, IAnnotationFinder finder, String name, Class<?> dataProviderClass, boolean isDynamicDataProvider, ITestContext context)
Find a method that has a @DataProvider(name=name) |
| private static IDataProvidable | findDataProviderInfo(ITestClass clazz, ConstructorOrMethod m, IAnnotationFinder finder)
Find the data provider info (data provider name and class) on either @Test(dataProvider),
|
| private static String | |
| public static ParameterHolder | Returns: An Iterator over the values for each parameter of this method.If the method has parameters, fill them in. Either by using a @DataProvider if any was
provided, or by looking up |
| public static ParameterHolder | Returns: An Iterator over the values for each parameter of this method.If the method has parameters, fill them in. Either by using a @DataProvider if any was
provided, or by looking up |
| public static Object[] | injectParameters(Object[]
parameter values from a data provider parameterValues, Method method to be invoked method, ITestContext test context context)Gets an array of parameter values returned by data provider or the ones that are injected based on parameter type. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static IDataProvidable | |
| private static String | |
| private static Class | |
| private static boolean |
| annotationList | back to summary |
|---|---|
| private static final List<Class<? extends Annotation>> annotationList | |
| INJECTED_TYPES | back to summary |
|---|---|
| private static final List<Class<?>> INJECTED_TYPES | |
| mapping | back to summary |
|---|---|
| private static final Map<String, List<Class<?>>> mapping | |
| Parameters | back to summary |
|---|---|
| public Parameters() | |
| areAllOptionalValuesNull | back to summary |
|---|---|
| private static boolean areAllOptionalValuesNull(String[] optionalValues) | |
| canInject | back to summary |
|---|---|
| private static boolean canInject(String annotation) | |
| checkParameterTypes | back to summary |
|---|---|
| private static void checkParameterTypes(String methodName, Class<?>[] parameterTypes, String methodAnnotation, String[] parameterNames) | |
| createConfigurationParameters | back to summary |
|---|---|
| public static Object[] createConfigurationParameters(Method m, Map<String, String> params, Object[] parameterValues, ITestNGMethod currentTestMethod, IAnnotationFinder finder, XmlSuite xmlSuite, ITestContext ctx, ITestResult testResult) Creates the parameters needed for the specified
| |
| createInstantiationParameters | back to summary |
|---|---|
| public static Object[] createInstantiationParameters(Constructor<?> ctor, String methodAnnotation, IAnnotationFinder finder, String[] parameterNames, Map<String, String> params, XmlSuite xmlSuite) Creates the parameters needed for constructing a test class instance. | |
| createParameters | back to summary |
|---|---|
| private static Object[] createParameters(ConstructorOrMethod m, Parameters. | |
| createParametersForConstructor | back to summary |
|---|---|
| private static Object[] createParametersForConstructor(Constructor<?> constructor, Class<?>[] parameterTypes, String[] optionalValues, String methodAnnotation, String[] parameterNames, Parameters. | |
| createParametersForMethod | back to summary |
|---|---|
private static Object[] createParametersForMethod(ConstructorOrMethod method, Class<?>[] parameterTypes, String[] optionalValues, String methodAnnotation, String[] parameterNames, Parameters.
| |
| createParams | back to summary |
|---|---|
| private static List | |
| extractOptionalValues | back to summary |
|---|---|
| private static String[] extractOptionalValues(IAnnotationFinder finder, ConstructorOrMethod consMethod) | |
| extractParameters | back to summary |
|---|---|
| private static Parameter[] extractParameters(ConstructorOrMethod method) | |
| filterOutInjectedTypesFromOptionalValues | back to summary |
|---|---|
| pack-priv static Parameters. Remove injected types from parameterTypes and optionalValues
| |
| findDataProvider | back to summary |
|---|---|
| private static IDataProviderMethod findDataProvider(ITestObjectFactory objectFactory, Object instance, ITestClass clazz, ConstructorOrMethod m, IAnnotationFinder finder, ITestContext context) | |
| findDataProvider | back to summary |
|---|---|
| private static IDataProviderMethod findDataProvider(ITestObjectFactory objectFactory, Object instance, ITestClass clazz, IAnnotationFinder finder, String name, Class<?> dataProviderClass, boolean isDynamicDataProvider, ITestContext context) Find a method that has a @DataProvider(name=name) | |
| findDataProviderInfo | back to summary |
|---|---|
| private static IDataProvidable findDataProviderInfo(ITestClass clazz, ConstructorOrMethod m, IAnnotationFinder finder) Find the data provider info (data provider name and class) on either @Test(dataProvider),
| |
| getDataProviderName | back to summary |
|---|---|
| private static String getDataProviderName(IDataProviderAnnotation dp, Method m) | |
| handleParameters | back to summary |
|---|---|
| public static ParameterHolder handleParameters(ITestObjectFactory objectFactory, ITestNGMethod testMethod, Map<String, String> allParameterNames, Object instance, Parameters. If the method has parameters, fill them in. Either by using a @DataProvider if any was
provided, or by looking up
| |
| handleParameters | back to summary |
|---|---|
| public static ParameterHolder handleParameters(ITestObjectFactory objectFactory, ITestNGMethod testMethod, Map<String, String> allParameterNames, Object instance, Parameters. If the method has parameters, fill them in. Either by using a @DataProvider if any was
provided, or by looking up
| |
| injectParameters | back to summary |
|---|---|
| public static Object[] injectParameters(Object[] parameterValues, Method method, ITestContext context) throws TestNGException Gets an array of parameter values returned by data provider or the ones that are injected based
on parameter type. The method also checks for
| |
| isDataProviderClassEmpty | back to summary |
|---|---|
| private static boolean isDataProviderClassEmpty(ITestAnnotation annotation) | |
| isDataProviderNameEmpty | back to summary |
|---|---|
| private static boolean isDataProviderNameEmpty(ITestAnnotation annotation) | |
| isDynamicDataProviderClassEmpty | back to summary |
|---|---|
| private static boolean isDynamicDataProviderClassEmpty(ITestAnnotation annotation) | |
| merge | back to summary |
|---|---|
| private static IDataProvidable merge(ITestAnnotation methodLevel, ITestAnnotation classLevel) | |
| prettyFormat | back to summary |
|---|---|
| private static String prettyFormat(List<Class<?>> classes) | |
| retrieveConfigAnnotation | back to summary |
|---|---|
| private static Class | |
| validParameters | back to summary |
|---|---|
| private static boolean validParameters(String methodAnnotation, Class<?>[] parameterTypes) | |
| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| private |
| optionalValues | back to summary |
|---|---|
| private final String[] optionalValues | |
| parameterTypes | back to summary |
|---|---|
| private final Class<?>[] parameterTypes | |
| FilterOutInjectedTypesResult | back to summary |
|---|---|
| private FilterOutInjectedTypesResult(Class<?>[] parameterTypes, String[] optionalValues) | |
| getOptionalValues | back to summary |
|---|---|
| pack-priv String[] getOptionalValues() | |
| getParameterTypes | back to summary |
|---|---|
| pack-priv Class | |
| Modifier and Type | Field and Description |
|---|---|
| private final ITestContext | |
| private final Method | |
| private final Object[] | |
| private final ITestResult | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MethodParameters(Map<String, String>
parameters found in the suite and test tags params, Map<String, String> parameters found in the include tag methodParams, Object[] parameter values to be used. pv, Method the m, ITestContext Method object.The ctx, ITestResult ITestContext object representing the current test- The tr)ITestResult object.
|
| Modifier and Type | Method and Description |
|---|---|
| public static Parameters. |
| context | back to summary |
|---|---|
| private final ITestContext context | |
| currentTestMethod | back to summary |
|---|---|
| private final Method currentTestMethod | |
| parameterValues | back to summary |
|---|---|
| private final Object[] parameterValues | |
| testResult | back to summary |
|---|---|
| private final ITestResult testResult | |
| xmlParameters | back to summary |
|---|---|
| private final Map<String, String> xmlParameters | |
| MethodParameters | back to summary |
|---|---|
| public MethodParameters(Map<String, String> params, Map<String, String> methodParams) | |
| MethodParameters | back to summary |
|---|---|
public MethodParameters(Map<String, String> params, Map<String, String> methodParams, Object[] pv, Method m, ITestContext ctx, ITestResult tr)
| |
| newInstance | back to summary |
|---|---|
| public static Parameters. | |