org.testng.TestNGUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
A testing framework for the JVM
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.
*/
public static ITestNGMethod createITestNGMethod(ITestNGMethod existingMethod, Method method) {
return new ClonedMethod(existingMethod, method);
}
}