private static Object [ ] [ ] getDataProviderContent ( final Method meth , final Object toInvoke ) { Object [ ] [ ] res ; try { res = ( Object [ ] [ ] ) meth . invoke ( toInvoke ) ; } catch ( IllegalAccessException | IllegalArgumentException | InvocationTargetException e ) { throw new IllegalArgumentException ( "Method " + meth + " as data provider throws an exception on invocation" ) ; } return res ; }
Getting the content of a dataprovider .