File tree 5 files changed +0
-25
lines changed
oauth2login/src/test/java/sample/web
oauth2webclient/src/test/java/sample
oauth2webclient-webflux/src/test/java/sample
5 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 23
23
24
24
import org .springframework .beans .factory .annotation .Autowired ;
25
25
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
26
- import org .springframework .boot .test .mock .mockito .MockBean ;
27
26
import org .springframework .security .oauth2 .client .registration .ClientRegistration ;
28
- import org .springframework .security .oauth2 .client .registration .ClientRegistrationRepository ;
29
27
import org .springframework .security .oauth2 .core .AuthorizationGrantType ;
30
28
import org .springframework .test .context .junit4 .SpringRunner ;
31
29
import org .springframework .test .web .servlet .MockMvc ;
@@ -46,9 +44,6 @@ public class OAuth2LoginControllerTests {
46
44
@ Autowired
47
45
MockMvc mvc ;
48
46
49
- @ MockBean
50
- ClientRegistrationRepository clientRegistrationRepository ;
51
-
52
47
@ Test
53
48
public void rootWhenAuthenticatedReturnsUserAndClient () throws Exception {
54
49
this .mvc .perform (get ("/" ).with (oauth2Login ()))
Original file line number Diff line number Diff line change 27
27
import org .springframework .boot .test .autoconfigure .web .reactive .AutoConfigureWebTestClient ;
28
28
import org .springframework .boot .test .autoconfigure .web .reactive .WebFluxTest ;
29
29
import org .springframework .boot .test .context .TestConfiguration ;
30
- import org .springframework .boot .test .mock .mockito .MockBean ;
31
30
import org .springframework .context .annotation .Bean ;
32
31
import org .springframework .context .annotation .Import ;
33
- import org .springframework .security .oauth2 .client .registration .ReactiveClientRegistrationRepository ;
34
32
import org .springframework .test .context .junit4 .SpringRunner ;
35
33
import org .springframework .test .web .reactive .server .WebTestClient ;
36
34
import org .springframework .web .reactive .function .client .WebClient ;
@@ -48,9 +46,6 @@ public class OAuth2WebClientControllerTests {
48
46
@ Autowired
49
47
private WebTestClient client ;
50
48
51
- @ MockBean
52
- ReactiveClientRegistrationRepository clientRegistrationRepository ;
53
-
54
49
@ AfterClass
55
50
public static void shutdown () throws Exception {
56
51
web .shutdown ();
Original file line number Diff line number Diff line change 27
27
import org .springframework .boot .test .autoconfigure .web .reactive .AutoConfigureWebTestClient ;
28
28
import org .springframework .boot .test .autoconfigure .web .reactive .WebFluxTest ;
29
29
import org .springframework .boot .test .context .TestConfiguration ;
30
- import org .springframework .boot .test .mock .mockito .MockBean ;
31
30
import org .springframework .context .annotation .Bean ;
32
31
import org .springframework .context .annotation .Import ;
33
- import org .springframework .security .oauth2 .client .registration .ReactiveClientRegistrationRepository ;
34
32
import org .springframework .test .context .junit4 .SpringRunner ;
35
33
import org .springframework .test .web .reactive .server .WebTestClient ;
36
34
import org .springframework .web .reactive .function .client .WebClient ;
@@ -48,9 +46,6 @@ public class RegisteredOAuth2AuthorizedClientControllerTests {
48
46
@ Autowired
49
47
private WebTestClient client ;
50
48
51
- @ MockBean
52
- ReactiveClientRegistrationRepository clientRegistrationRepository ;
53
-
54
49
@ AfterClass
55
50
public static void shutdown () throws Exception {
56
51
web .shutdown ();
Original file line number Diff line number Diff line change 26
26
import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
27
27
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
28
28
import org .springframework .boot .test .context .TestConfiguration ;
29
- import org .springframework .boot .test .mock .mockito .MockBean ;
30
29
import org .springframework .context .annotation .Bean ;
31
- import org .springframework .security .oauth2 .client .registration .ClientRegistrationRepository ;
32
30
import org .springframework .test .context .junit4 .SpringRunner ;
33
31
import org .springframework .test .web .servlet .MockMvc ;
34
32
import org .springframework .web .reactive .function .client .WebClient ;
@@ -47,9 +45,6 @@ public class OAuth2WebClientControllerTests {
47
45
@ Autowired
48
46
private MockMvc mockMvc ;
49
47
50
- @ MockBean
51
- ClientRegistrationRepository clientRegistrationRepository ;
52
-
53
48
@ AfterClass
54
49
public static void shutdown () throws Exception {
55
50
web .shutdown ();
Original file line number Diff line number Diff line change 26
26
import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
27
27
import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
28
28
import org .springframework .boot .test .context .TestConfiguration ;
29
- import org .springframework .boot .test .mock .mockito .MockBean ;
30
29
import org .springframework .context .annotation .Bean ;
31
- import org .springframework .security .oauth2 .client .registration .ClientRegistrationRepository ;
32
30
import org .springframework .test .context .junit4 .SpringRunner ;
33
31
import org .springframework .test .web .servlet .MockMvc ;
34
32
import org .springframework .web .reactive .function .client .WebClient ;
@@ -47,9 +45,6 @@ public class RegisteredOAuth2AuthorizedClientControllerTests {
47
45
@ Autowired
48
46
private MockMvc mockMvc ;
49
47
50
- @ MockBean
51
- ClientRegistrationRepository clientRegistrationRepository ;
52
-
53
48
@ AfterClass
54
49
public static void shutdown () throws Exception {
55
50
web .shutdown ();
You can’t perform that action at this time.
0 commit comments