1 package org.testng;
2 
3 import org.testng.internal.ClonedMethod;
4 
5 import java.lang.reflect.Method;
6 
7 public class TestNGUtils {
8 
9   /**
10    * Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs
11    * to belong to the same class.
12    */
createITestNGMethod(ITestNGMethod existingMethod, Method method)13   public static ITestNGMethod createITestNGMethod(ITestNGMethod existingMethod, Method method) {
14     return new ClonedMethod(existingMethod, method);
15   }
16 }
17