openvidu-server: replace deprecated @SpyBean with @MockitoSpyBean

v2
pabloFuente 2025-11-04 16:52:33 +01:00
parent f120e6a70c
commit a9ad482c0b
2 changed files with 6 additions and 6 deletions

View File

@ -27,8 +27,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.web.WebAppConfiguration;
@ -55,7 +55,7 @@ public class SessionGarbageCollectorIntegrationTest {
private static final Logger log = LoggerFactory.getLogger(SessionGarbageCollectorIntegrationTest.class);
@SpyBean
@MockitoSpyBean
private KmsManager kmsManager;
@Autowired

View File

@ -31,8 +31,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.util.ReflectionTestUtils;
@ -68,13 +68,13 @@ public class WebhookIntegrationTest {
private static final Logger log = LoggerFactory.getLogger(WebhookIntegrationTest.class);
@SpyBean
@MockitoSpyBean
private CallDetailRecord cdr;
@SpyBean
@MockitoSpyBean
private SessionEventsHandler sessionEventsHandler;
@SpyBean
@MockitoSpyBean
protected RpcNotificationService rpcNotificationService;
@Autowired