Annotation Interface AuthenticationSource


@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @ArgumentsSource(AuthenticationProvider.class) public @interface AuthenticationSource

Define the different Authentication instances to run each of JUnit 5 @ParameterizedTest with.

Usage:
 @AuthenticationSource({ @WithMockAuthentication("NICE"), @WithMockAuthentication("VERY_NICE") })
 void test(@ParameterizedAuthentication Authentication auth) throws Exception {
     ...
 }
 
Since:
6.1.12
Author:
Jerome Wacongne ch4mp@c4-soft.com
See Also: