@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface DataProvider
The name defaults to the name of the annotated method.
The annotated method must return any of the following:
Object[][] or Iterator<Object[]>, where each Object[] is assigned
to the parameter list of the test method.
Object[] or Iterator<Object>, where each Object is assigned to the
single parameter of the test method.
The @Test method that wants to receive data from this DataProvider needs
to use a Test.dataProvider() name equal to the name of this annotation.
public abstract String name
Copyright © 2025. All rights reserved.