Package org.instancio.junit
Annotation Type InstancioSource
@Target({ANNOTATION_TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@ArgumentsSource(org.instancio.junit.internal.InstancioArgumentsProvider.class)
public @interface InstancioSource
Provides arguments for
@ParameterizedTest methods.
Supports multiple arguments. Each argument will be a fully-populated instance.
Example:
@ExtendWith(InstancioExtension.class)
class ExampleTest {
@ParameterizedTest
@InstancioSource
void someTestMethod(String s, int n, Person person) {
// ... use generated arguments
}
}
- Since:
- 1.1.8