Skip to content

Commit bdaf530

Browse files
committed
Remove Stray @MockBean
Issue gh-7170
1 parent a085a12 commit bdaf530

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

samples/boot/oauth2resourceserver/src/test/java/sample/OAuth2ResourceServerControllerTests.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020

2121
import org.springframework.beans.factory.annotation.Autowired;
2222
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
23-
import org.springframework.boot.test.mock.mockito.MockBean;
2423
import org.springframework.security.core.authority.SimpleGrantedAuthority;
25-
import org.springframework.security.oauth2.jwt.JwtDecoder;
2624
import org.springframework.test.context.junit4.SpringRunner;
2725
import org.springframework.test.web.servlet.MockMvc;
2826

@@ -47,9 +45,6 @@ public class OAuth2ResourceServerControllerTests {
4745
@Autowired
4846
MockMvc mockMvc;
4947

50-
@MockBean
51-
JwtDecoder jwtDecoder;
52-
5348
@Test
5449
public void indexGreetsAuthenticatedUser() throws Exception {
5550
mockMvc.perform(get("/").with(jwt(jwt -> jwt.subject("ch4mpy"))))

0 commit comments

Comments
 (0)