From bdaf530511b84c42c86259da3f473d433da52d79 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Mon, 16 Sep 2019 06:56:58 -0600 Subject: [PATCH] Remove Stray @MockBean Issue gh-7170 --- .../java/sample/OAuth2ResourceServerControllerTests.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/samples/boot/oauth2resourceserver/src/test/java/sample/OAuth2ResourceServerControllerTests.java b/samples/boot/oauth2resourceserver/src/test/java/sample/OAuth2ResourceServerControllerTests.java index 8c15fea8de..b55c6ed53c 100644 --- a/samples/boot/oauth2resourceserver/src/test/java/sample/OAuth2ResourceServerControllerTests.java +++ b/samples/boot/oauth2resourceserver/src/test/java/sample/OAuth2ResourceServerControllerTests.java @@ -20,9 +20,7 @@ import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; -import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.security.core.authority.SimpleGrantedAuthority; -import org.springframework.security.oauth2.jwt.JwtDecoder; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; @@ -47,9 +45,6 @@ public class OAuth2ResourceServerControllerTests { @Autowired MockMvc mockMvc; - @MockBean - JwtDecoder jwtDecoder; - @Test public void indexGreetsAuthenticatedUser() throws Exception { mockMvc.perform(get("/").with(jwt(jwt -> jwt.subject("ch4mpy"))))