org.testng.ConversionUtils 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
Testing framework for Java
package org.testng;
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