diff --git a/src/test/java/com/monkeyk/sos/web/controller/resource/UnityControllerTest.java b/src/test/java/com/monkeyk/sos/web/controller/resource/UnityControllerTest.java index 6e57257..51a253a 100644 --- a/src/test/java/com/monkeyk/sos/web/controller/resource/UnityControllerTest.java +++ b/src/test/java/com/monkeyk/sos/web/controller/resource/UnityControllerTest.java @@ -17,6 +17,7 @@ import org.springframework.restdocs.RestDocumentationExtension; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService; import org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository; +import org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings; import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder; @@ -65,6 +66,10 @@ class UnityControllerTest { private PasswordEncoder passwordEncoder; + @MockBean + private AuthorizationServerSettings authorizationServerSettings; + + @BeforeEach public void setup(WebApplicationContext applicationContext, RestDocumentationContextProvider contextProvider) { this.mockMvc = MockMvcBuilders.webAppContextSetup(applicationContext)