Package org.instancio.junit
Annotation Type InstancioSource
@Target({ANNOTATION_TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@ArgumentsSource(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(Person person) {
// ... use supplied person
}
}