package org.testng;
import org.testng.internal.ClonedMethod;
import java.lang.reflect.Method;
public class TestNGUtils {
Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs to belong
to the same class.
Params: - existingMethod – The test method
- method – The method
Returns: The created test method
/**
* Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs to belong
* to the same class.
*
* @param existingMethod The test method
* @param method The method
* @return The created test method
*/
public static ITestNGMethod createITestNGMethod(ITestNGMethod existingMethod, Method method) {
return new ClonedMethod(existingMethod, method);
}
}