We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b82597 commit a99eee0Copy full SHA for a99eee0
src/main/java/com/github/ahunigel/test/security/oauth2/MockTokenServices.java
@@ -4,9 +4,13 @@
4
import org.springframework.boot.test.mock.mockito.MockReset;
5
import org.springframework.security.oauth2.provider.token.ResourceServerTokenServices;
6
7
+import java.lang.annotation.Retention;
8
+import java.lang.annotation.RetentionPolicy;
9
+
10
/**
11
* Created by Nigel Zheng on 8/7/2018.
12
*/
-@MockBean(value = {ResourceServerTokenServices.class}, reset = MockReset.NONE)
13
+@Retention(RetentionPolicy.RUNTIME)
14
+@MockBean(value = {ResourceServerTokenServices.class}, reset = MockReset.AFTER)
15
public @interface MockTokenServices {
16
}
0 commit comments