You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.
When using a Method and Array as argument to a test method, produced by a data
provider method, the test does not run due to IllegalArgumentException.
seems very strange but does not allow me to use Helios...
here the test case which strangly fails:
import java.lang.reflect.Method;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class TestTestNG {
@Test(dataProvider="m")
public void testMethod( Method m , Object[] args ) {
}
@DataProvider(name="m")
public Object[][] getM() {
Method m = getMethod();
return new Object[][] {
{ m , new Object[] { "" } }
};
}
private Method getMethod() {
try {
return Object.class.getMethod("toString");
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
return null;
}
}
Original issue reported on code.google.com by [email protected] on 21 Aug 2010 at 6:38
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 21 Aug 2010 at 6:38The text was updated successfully, but these errors were encountered: