org.testng.ConversionUtils Maven / Gradle / Ivy
package org.testng;
import org.testng.log4testng.Logger;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* Helper methods used by the Eclipse plug-in when converting tests from JUnit.
*
* @author Cedric Beust
*/
public class ConversionUtils {
/**
* Turns the output of a JUnit 4 @Parameters style data provider into one that is suitable for
* TestNG's @DataProvider.
*/
public static Object[] wrapDataProvider(Class cls, Collection