JUnitParams is only passing primitive objects (String, int) but not other objects, eg.:
@Test
@Parameters
testMethod(String sample, MyObj myobj, MyObj myobj)
{}
private Object[] parametersForTestMethod()
{
return $($("testString", myobj, myotherobj));
}
Only "testString"
gets passed, remaining are null
. Is there a workaround to pass non-primitive parameters?