Package org.tudalgo.algoutils.reflect
Class MethodTester
java.lang.Object
org.tudalgo.algoutils.reflect.MethodTester
Deprecated, for removal: This API element is subject to removal in a future version.
A method tester which tests properties of a class.
This class is deprecated and will be removed in a future release.
Use the new API located in the
org.tudalgo.algoutils.tutor.general.reflections package instead.-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Indicator if super class check are allowed. -
Constructor Summary
ConstructorsConstructorDescriptionMethodTester(ClassTester<?> classTester, String methodName) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.MethodTester(ClassTester<?> classTester, String methodName, double similarity) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType, ArrayList<ParameterMatcher> parameters, boolean allowSuperClass, boolean looseReturnTypeChecking) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType, List<ParameterMatcher> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType, List<ParameterMatcher> parameters, boolean allowSuperClass) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.MethodTester(ClassTester<?> classTester, String methodName, double similarity, Class<?> returnType, ArrayList<ParameterMatcher> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(Class<?> type) Deprecated, for removal: This API element is subject to removal in a future version.Adds an expected parameter matchers to this tester.voidaddParameter(Class<?> type, String name, double similarity) Deprecated, for removal: This API element is subject to removal in a future version.Adds an expected parameters' matcher to this tester.voidaddParameter(ParameterMatcher... parameterMatchers) Deprecated, for removal: This API element is subject to removal in a future version.Adds an expected parameters' matcher to this tester.voidDeprecated, for removal: This API element is subject to removal in a future version.Tests whether the actual access modifier count matches with the expected one.voidDeprecated, for removal: This API element is subject to removal in a future version.Tests whether the class tester used to invoke the method can be resolved.voidDeprecated, for removal: This API element is subject to removal in a future version.Tests whether the class tester used to invoke the method is notnull.voidassertConstructsNotUsed(List<Class<? extends spoon.reflect.code.CtCodeElement>> disallowedConstructs) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether none of the blacklisted constructs where used in the constructor.voidDeprecated, for removal: This API element is subject to removal in a future version.Tests whether the method can be invoked.static voidassertMethodNotNull(Method m, String name) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the specified method is notnull.voidDeprecated, for removal: This API element is subject to removal in a future version.Tests whether the test method could be resolved.voidDeprecated, for removal: This API element is subject to removal in a future version.Tests whether the method parameters matches with the expected parameters.static voidassertParametersMatch(Method m, String methodName, List<ParameterMatcher> parameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the method parameters match.static voidassertParametersMatch(List<ParameterMatcher> expectedParameters, List<Parameter> actualParameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the method parameters match.voidDeprecated, for removal: This API element is subject to removal in a future version.Tests whether the actual return type matches the expected return type.voidassertReturnValueEquals(Object expected, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the return value after the invocation with the specified parameters are correct.voidassertReturnValueEquals(Object expected, String additionalMessage, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the return value after the invocation with the specified parameters are correct.Deprecated, for removal: This API element is subject to removal in a future version.Assures that the method has been resolved.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the class tester used to invoke the method is notnulland can be resolved.static intcountMatchingParameters(Method m, String methodName, List<ParameterMatcher> parameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Counts the matching parameters.static intcountMatchingParameters(List<ParameterMatcher> expectedParameters, List<Parameter> actualParameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Counts the matching parameters.intDeprecated, for removal: This API element is subject to removal in a future version.Returns the expected access modifier count.getAllMethods(Class<?> clazz) Deprecated, for removal: This API element is subject to removal in a future version.Returns all fields from a class and its super classes recursively.ClassTester<?>Deprecated, for removal: This API element is subject to removal in a future version.Returns the class tester used to invoke the method.static StringgetClassTesterNullMessage(String methodName) Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined class testernullmessage.static StringgetInvalidReturnTypeMessage(String methodName) Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined message for an invalid return type.intDeprecated, for removal: This API element is subject to removal in a future version.Gets the number of invocations.List<org.mockito.invocation.Invocation>Deprecated, for removal: This API element is subject to removal in a future version.Gets the invocations of the test method.Deprecated, for removal: This API element is subject to removal in a future version.Returns the method identifier containing the name of the method and the similarity to accept alternative identifiers.Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined method not found message.static StringgetMethodNotFoundMessage(String methodName) Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined method not found message.Deprecated, for removal: This API element is subject to removal in a future version.Returns the expected parameters.Object[]Deprecated, for removal: This API element is subject to removal in a future version.Returns the random valid parameter values.Class<?>Deprecated, for removal: This API element is subject to removal in a future version.Returns the expected class type of the test method.static StringgetShouldNotHaveParameterMessage(String methodName) Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined should not have parameter message.Deprecated, for removal: This API element is subject to removal in a future version.Returns the method that should be tested.Deprecated, for removal: This API element is subject to removal in a future version.Invokes test method using the class tester.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the method can be invoked, more formally returnstrueif the class tester used to invoke the method, the method itself can be resolved.Deprecated, for removal: This API element is subject to removal in a future version.Invokes the test method with random parameters.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returnstrueif subtype are allowed for the return type.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returnstrueif test method is notnull.Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name.resolveMethod(double similarity) Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name.resolveMethod(Class<?> theClass, String methodName, double similarity, List<ParameterMatcher> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name.resolveMethod(Class<?> theClass, String methodName, double similarity, List<ParameterMatcher> parameters, boolean allowSuperClass) Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name.static StringsafeArrayToString(Object... array) Deprecated, for removal: This API element is subject to removal in a future version.Represents a safe string as an array.voidsetAccessModifier(int accessModifier) Deprecated, for removal: This API element is subject to removal in a future version.Sets the expected access modifier count to the new value.voidsetClassTester(ClassTester<?> classTester) Deprecated, for removal: This API element is subject to removal in a future version.Sets the class tester used to invoke the method to the specified value.voidsetLooseReturnTypeChecking(boolean looseReturnTypeChecking) Deprecated, for removal: This API element is subject to removal in a future version.Sets the boolean value whether to allow subtypes for the return type.voidsetMethodIdentifier(IdentifierMatcher methodIdentifier) Deprecated, for removal: This API element is subject to removal in a future version.Set the method identifier containing the name of the method and the similarity to accept alternative identifiers to the specified value.voidsetParameters(List<ParameterMatcher> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Sets the expected parameters to the specified value.voidsetReturnType(Class<?> returnType) Deprecated, for removal: This API element is subject to removal in a future version.Sets the expected class type of the test method to the specified value.voidsetTheMethod(Method theMethod) Deprecated, for removal: This API element is subject to removal in a future version.Sets the method that should be tested to the specified value.verify()Deprecated, for removal: This API element is subject to removal in a future version.Verifies that the method was declared correctly.
-
Field Details
-
allowSuperClass
public boolean allowSuperClassDeprecated, for removal: This API element is subject to removal in a future version.Indicator if super class check are allowed.
-
-
Constructor Details
-
MethodTester
public MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType, List<ParameterMatcher> parameters, boolean allowSuperClass) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to testsimilarity- the minimum matching similarityaccessModifier- the expected access modifier countreturnType- the expected return type of the methodparameters- the expected parameters of the methodallowSuperClass- the indicator @param allowSuperClass the indicator if super class check are allowed
-
MethodTester
public MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType, List<ParameterMatcher> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to testsimilarity- the minimum matching similarityaccessModifier- the expected access modifier countreturnType- the expected return type of the methodparameters- the expected parameters of the method
-
MethodTester
public MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType, ArrayList<ParameterMatcher> parameters, boolean allowSuperClass, boolean looseReturnTypeChecking) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to testsimilarity- the minimum matching similarityaccessModifier- the expected access modifier countreturnType- the expected return type of the methodparameters- the expected parameters of the methodallowSuperClass- the indicator if super class check are allowed
-
MethodTester
public MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier, Class<?> returnType) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to testsimilarity- the minimum matching similarityaccessModifier- the expected access modifier countreturnType- the expected return type of the method
-
MethodTester
public MethodTester(ClassTester<?> classTester, String methodName, double similarity, int accessModifier) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to testsimilarity- the minimum matching similarityaccessModifier- the expected access modifier count
-
MethodTester
public MethodTester(ClassTester<?> classTester, String methodName, double similarity, Class<?> returnType, ArrayList<ParameterMatcher> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to testsimilarity- the minimum matching similarityreturnType- the expected return type of the methodparameters- the expected parameters of the method
-
MethodTester
Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to testsimilarity- the minimum matching similarity
-
MethodTester
Deprecated, for removal: This API element is subject to removal in a future version.Constructs and initializes a method tester.- Parameters:
classTester- the class tester used to invoke the methodmethodName- the expected method name to test
-
-
Method Details
-
getInvalidReturnTypeMessage
Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined message for an invalid return type.- Parameters:
methodName- the method name used in the message- Returns:
- a predefined message for an invalid return type.
-
getShouldNotHaveParameterMessage
Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined should not have parameter message.- Parameters:
methodName- the method name used in the message- Returns:
- a predefined should not have parameter message
-
countMatchingParameters
public static int countMatchingParameters(List<ParameterMatcher> expectedParameters, List<Parameter> actualParameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Counts the matching parameters.- Parameters:
expectedParameters- the expected parametersactualParameters- the actual ParametersignoreNames- the indicator whether to ignore parameter names- Returns:
- the number of matched parameters
-
countMatchingParameters
public static int countMatchingParameters(Method m, String methodName, List<ParameterMatcher> parameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Counts the matching parameters.- Parameters:
m- the actual method with the parametersmethodName- the name of the methodparameters- the expected parametersignoreNames- the indicator whether to ignore parameter names- Returns:
- the number of matched parameters
-
assertParametersMatch
public static void assertParametersMatch(List<ParameterMatcher> expectedParameters, List<Parameter> actualParameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the method parameters match.- Parameters:
expectedParameters- the expected parametersactualParameters- the actual parametersignoreNames- the indicator whether to ignore parameter names
-
assertParametersMatch
public static void assertParametersMatch(Method m, String methodName, List<ParameterMatcher> parameters, boolean ignoreNames) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the method parameters match.- Parameters:
m- the actual method to verifymethodName- the expected name of the methodparameters- the expected parameterignoreNames- the indicator whether to ignore parameter names
-
assertParametersMatch
public void assertParametersMatch()Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the method parameters matches with the expected parameters. -
assertMethodNotNull
Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the specified method is notnull.- Parameters:
m- the method to checkname- the expected method name of the method to check
-
getClassTesterNullMessage
Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined class testernullmessage.- Parameters:
methodName- the expected method name- Returns:
- a predefined class tester
nullmessage
-
safeArrayToString
Deprecated, for removal: This API element is subject to removal in a future version.Represents a safe string as an array.- Parameters:
array- the array to convert- Returns:
- the string representation of the array
-
getAllMethods
Deprecated, for removal: This API element is subject to removal in a future version.Returns all fields from a class and its super classes recursively.- Parameters:
clazz- the class to search- Returns:
- all fields from a class and its super classes
-
getClassTester
Deprecated, for removal: This API element is subject to removal in a future version.Returns the class tester used to invoke the method.- Returns:
- the class tester used to invoke the method
-
setClassTester
Deprecated, for removal: This API element is subject to removal in a future version.Sets the class tester used to invoke the method to the specified value.- Parameters:
classTester- the new class tester value
-
getMethodIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.Returns the method identifier containing the name of the method and the similarity to accept alternative identifiers.- Returns:
- method identifier containing the name of the method and the similarity to accept alternative identifiers
-
setMethodIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.Set the method identifier containing the name of the method and the similarity to accept alternative identifiers to the specified value.- Parameters:
methodIdentifier- the new method identifier
-
getReturnType
Deprecated, for removal: This API element is subject to removal in a future version.Returns the expected class type of the test method.- Returns:
- the expected class type of the test method
-
setReturnType
Deprecated, for removal: This API element is subject to removal in a future version.Sets the expected class type of the test method to the specified value.- Parameters:
returnType- the new return type
-
isLooseReturnTypeChecking
public boolean isLooseReturnTypeChecking()Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif subtype are allowed for the return type.- Returns:
trueif subtype are allowed for the return type
-
setLooseReturnTypeChecking
public void setLooseReturnTypeChecking(boolean looseReturnTypeChecking) Deprecated, for removal: This API element is subject to removal in a future version.Sets the boolean value whether to allow subtypes for the return type.- Parameters:
looseReturnTypeChecking- the indicator whether to allow it or not
-
assertReturnType
public void assertReturnType()Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the actual return type matches the expected return type. -
verify
Deprecated, for removal: This API element is subject to removal in a future version.Verifies that the method was declared correctly.- Returns:
- this method tester
-
getParameters
Deprecated, for removal: This API element is subject to removal in a future version.Returns the expected parameters.- Returns:
- the expected parameters
-
setParameters
Deprecated, for removal: This API element is subject to removal in a future version.Sets the expected parameters to the specified value.- Parameters:
parameters- the new expected parameters
-
getTheMethod
Deprecated, for removal: This API element is subject to removal in a future version.Returns the method that should be tested.- Returns:
- the method that should be tested
-
setTheMethod
Deprecated, for removal: This API element is subject to removal in a future version.Sets the method that should be tested to the specified value.- Parameters:
theMethod- the new method to be tested
-
addParameter
Deprecated, for removal: This API element is subject to removal in a future version.Adds an expected parameters' matcher to this tester.- Parameters:
parameterMatchers- the parameters' matcher to add
-
addParameter
Deprecated, for removal: This API element is subject to removal in a future version.Adds an expected parameters' matcher to this tester.- Parameters:
type- the type of the expected parameter typename- the name of the parameter to matchsimilarity- the minimum required similarity
-
addParameter
Deprecated, for removal: This API element is subject to removal in a future version.Adds an expected parameter matchers to this tester.- Parameters:
type- the type of the expected parameter type
-
getMethodNotFoundMessage
Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined method not found message.- Parameters:
methodName- the name of the method used for the message- Returns:
- a predefined method not found message
-
getMethodNotFoundMessage
Deprecated, for removal: This API element is subject to removal in a future version.Generates a predefined method not found message.- Returns:
- a predefined method not found message
-
methodResolved
public boolean methodResolved()Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif test method is notnull.- Returns:
trueif test method is notnull
-
assertMethodResolved
public void assertMethodResolved()Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the test method could be resolved. -
assertClassTesterNotNull
public void assertClassTesterNotNull()Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the class tester used to invoke the method is notnull. -
classResolved
public boolean classResolved()Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the class tester used to invoke the method is notnulland can be resolved.- Returns:
trueif the class tester used to invoke the method is notnulland can be resolved
-
assertClassResolved
public void assertClassResolved()Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the class tester used to invoke the method can be resolved. -
invokeable
public boolean invokeable()Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the method can be invoked, more formally returnstrueif the class tester used to invoke the method, the method itself can be resolved.- Returns:
trueif the method can be invoked.
-
assertInvokeable
public void assertInvokeable()Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the method can be invoked.- See Also:
-
invoke
Deprecated, for removal: This API element is subject to removal in a future version.Invokes test method using the class tester.- Parameters:
params- the parameters of the method that should be invoked- Returns:
- the return value of the method after its invocation
-
getInvocations
Deprecated, for removal: This API element is subject to removal in a future version.Gets the invocations of the test method.- Returns:
- the invocations of the test method
-
getInvocationCount
public int getInvocationCount()Deprecated, for removal: This API element is subject to removal in a future version.Gets the number of invocations. (How often Has the test method been invoked?)- Returns:
- the number of invocations
-
getRandomParams
Deprecated, for removal: This API element is subject to removal in a future version.Returns the random valid parameter values.- Returns:
- the random valid parameter values
-
invokeWithRandomParams
Deprecated, for removal: This API element is subject to removal in a future version.Invokes the test method with random parameters.- Returns:
- the return value of the method after its invocation
-
assertConstructsNotUsed
public void assertConstructsNotUsed(List<Class<? extends spoon.reflect.code.CtCodeElement>> disallowedConstructs) Deprecated, for removal: This API element is subject to removal in a future version.Tests whether none of the blacklisted constructs where used in the constructor.- Parameters:
disallowedConstructs- the not allowed constructs in the constructor
-
assertReturnValueEquals
Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the return value after the invocation with the specified parameters are correct.- Parameters:
expected- the expected return valueparams- the parameters used for the invocation
-
assertReturnValueEquals
Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the return value after the invocation with the specified parameters are correct.- Parameters:
expected- the expected return valueadditionalMessage- the additional message if the test failsparams- the parameters used for the invocation
-
getAccessModifier
public int getAccessModifier()Deprecated, for removal: This API element is subject to removal in a future version.Returns the expected access modifier count.- Returns:
- the expected access modifier count
-
setAccessModifier
public void setAccessModifier(int accessModifier) Deprecated, for removal: This API element is subject to removal in a future version.Sets the expected access modifier count to the new value.- Parameters:
accessModifier- the new expected access modifier count
-
assertAccessModifier
public void assertAccessModifier()Deprecated, for removal: This API element is subject to removal in a future version.Tests whether the actual access modifier count matches with the expected one. -
resolveMethod
public Method resolveMethod(Class<?> theClass, String methodName, double similarity, List<ParameterMatcher> parameters, boolean allowSuperClass) Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according tocountMatchingParameters(Method, String, List, boolean)is chosen.- Parameters:
theClass- the class to searchmethodName- the expected method namesimilarity- the minimum required similarityparameters- the expected parametersallowSuperClass- the indicator whether to search in super classes as well- Returns:
- the resolved method
- See Also:
-
resolveMethod
public Method resolveMethod(Class<?> theClass, String methodName, double similarity, List<ParameterMatcher> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according tocountMatchingParameters(Method, String, List, boolean)is chosen.- Parameters:
theClass- the class to searchmethodName- the expected method namesimilarity- the minimum required similarityparameters- the expected parameters- Returns:
- the resolved method
- See Also:
-
resolveMethod
Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according tocountMatchingParameters(Method, String, List, boolean)is chosen.- Parameters:
similarity- the minimum required similarity- Returns:
- the resolved method
- See Also:
-
resolveMethod
Deprecated, for removal: This API element is subject to removal in a future version.Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according tocountMatchingParameters(Method, String, List, boolean)is chosen.- Returns:
- the resolved method
- See Also:
-
assureMethodResolved
Deprecated, for removal: This API element is subject to removal in a future version.Assures that the method has been resolved.- Returns:
- this method tester
-