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.
@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:
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements
-
Element Details
-
value
WithMockAuthentication[] value- Default:
- {}
-