Skip to content

Commit a99eee0

Browse files
author
nigel.zheng
committed
fix: @MockTokenServices missing @retention annotation
1 parent 7b82597 commit a99eee0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/github/ahunigel/test/security/oauth2/MockTokenServices.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
import org.springframework.boot.test.mock.mockito.MockReset;
55
import org.springframework.security.oauth2.provider.token.ResourceServerTokenServices;
66

7+
import java.lang.annotation.Retention;
8+
import java.lang.annotation.RetentionPolicy;
9+
710
/**
811
* Created by Nigel Zheng on 8/7/2018.
912
*/
10-
@MockBean(value = {ResourceServerTokenServices.class}, reset = MockReset.NONE)
13+
@Retention(RetentionPolicy.RUNTIME)
14+
@MockBean(value = {ResourceServerTokenServices.class}, reset = MockReset.AFTER)
1115
public @interface MockTokenServices {
1216
}

0 commit comments

Comments
 (0)