File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
samples/boot/oauth2resourceserver/src/test/java/sample Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import org .springframework .beans .factory .annotation .Autowired ;
22
22
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
23
- import org .springframework .boot .test .mock .mockito .MockBean ;
24
23
import org .springframework .security .core .authority .SimpleGrantedAuthority ;
25
- import org .springframework .security .oauth2 .jwt .JwtDecoder ;
26
24
import org .springframework .test .context .junit4 .SpringRunner ;
27
25
import org .springframework .test .web .servlet .MockMvc ;
28
26
@@ -47,9 +45,6 @@ public class OAuth2ResourceServerControllerTests {
47
45
@ Autowired
48
46
MockMvc mockMvc ;
49
47
50
- @ MockBean
51
- JwtDecoder jwtDecoder ;
52
-
53
48
@ Test
54
49
public void indexGreetsAuthenticatedUser () throws Exception {
55
50
mockMvc .perform (get ("/" ).with (jwt (jwt -> jwt .subject ("ch4mpy" ))))
You can’t perform that action at this time.
0 commit comments