TestNG plugin does not support to return Iterator<CustomObject> in DataProvider

When creating DataProvider with a method that will return Iterator<CustomObject>, TestNg plugin marks it red and shows error
message, that supported types are: Object[][], Object[] or Iterator<Object[]>, Iterator<Object>.

My code example:

3

请先登录再写评论。