Annotation Interface BearerAuthenticationSource
@Target({ANNOTATION_TYPE,METHOD})
@Retention(RUNTIME)
@ArgumentsSource(AuthenticationProvider.class)
public @interface BearerAuthenticationSource
Deprecated.
Define the different BearerTokenAuthentication instances to run each of JUnit 5 @ParameterizedTest with.
@BearerAuthenticationSource({ @WithMockBearerTokenAuthentication("NICE"), @WithMockBearerTokenAuthentication("VERY_NICE") })
void test(@ParameterizedBearerAuth BearerTokenAuthentication auth) throws Exception {
...
}
- Author:
- Jerome Wacongne ch4mp@c4-soft.com
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.
-
Element Details
-
value
Deprecated.- Default:
- {}
-
@MethodSourcein association with@ParameterizedAuthenticationandWithOpaqueToken.AuthenticationFactoryinstead