Invalid data provider return type

Last modified: Last modified: 18 September 2025

Reports methods marked with @DataProvider annotation that doesn't return Object[][] or Iterator<Object>. If another type is returned, TestNG throws an exception.

Example: