Package org.testng.internal.reflect
Class DirectMethodMatcher
java.lang.Object
org.testng.internal.reflect.AbstractMethodMatcher
org.testng.internal.reflect.AbstractNodeMethodMatcher
org.testng.internal.reflect.DirectMethodMatcher
- All Implemented Interfaces:
MethodMatcher
Checks for method argument match with or without filtering injectables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Set<InjectableParameter>>
protected boolean
Checks if its possible to gives an array consumable by java method invoker.protected Object[]
matchingArguments
(Parameter[] parameters, Object[] arguments) If possible gives an array consumable by java method invoker.Methods inherited from class org.testng.internal.reflect.AbstractNodeMethodMatcher
getConformingArguments, getConformingParameters, hasConformance
Methods inherited from class org.testng.internal.reflect.AbstractMethodMatcher
conforms, getConforms, getContext
-
Constructor Details
-
DirectMethodMatcher
-
-
Method Details
-
getConformanceInjectsOrder
- Specified by:
getConformanceInjectsOrder
in classAbstractNodeMethodMatcher
- Returns:
- injects to check against.
-
match
Checks if its possible to gives an array consumable by java method invoker.- Specified by:
match
in classAbstractNodeMethodMatcher
- Parameters:
parameters
- array of parameter instances under question.arguments
- instances to be verified.- Returns:
- matches or not
-
matchingArguments
If possible gives an array consumable by java method invoker.- Specified by:
matchingArguments
in classAbstractNodeMethodMatcher
- Parameters:
parameters
- array of parameter instances under question.arguments
- instances to conform.- Returns:
- conforming argument array
-