Top Description Constructors Methods
org.testng

public Class ConversionUtils

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.util.ArrayList, .Collection, .List, org.testng.internal.objects.InstanceCreator, org.testng.log4testng.Logger

Deprecated

Helper methods used by the Eclipse plug-in when converting tests from JUnit.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Object[]

Returns:

Collection of class instance
wrapDataProvider
(Class<?>
The class to create
cls
,
Collection<Object[]>
The parameters list
data
)

Turns the output of a JUnit 4 @Parameters style data provider into one that is suitable for TestNG's @DataProvider.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConversionUtilsback to summary
public ConversionUtils()

Method Detail

wrapDataProviderback to summary
public static Object[] wrapDataProvider(Class<?> cls, Collection<Object[]> data)

Turns the output of a JUnit 4 @Parameters style data provider into one that is suitable for TestNG's @DataProvider.

Parameters
cls:Class<?>

The class to create

data:Collection<Object[]>

The parameters list

Returns:Object[]

Collection of class instance