From 8fd51291a0d880dc99ad19d39ab497d7a531a814 Mon Sep 17 00:00:00 2001 From: Sheikah45 Date: Tue, 31 Oct 2023 18:48:38 -0400 Subject: [PATCH] Fix tests --- .../faforever/client/fa/relay/ice/CoturnServiceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/faforever/client/fa/relay/ice/CoturnServiceTest.java b/src/test/java/com/faforever/client/fa/relay/ice/CoturnServiceTest.java index ea0e65e56c..99edb5ae23 100644 --- a/src/test/java/com/faforever/client/fa/relay/ice/CoturnServiceTest.java +++ b/src/test/java/com/faforever/client/fa/relay/ice/CoturnServiceTest.java @@ -1,6 +1,7 @@ package com.faforever.client.fa.relay.ice; import com.faforever.client.api.FafApiAccessor; +import com.faforever.client.api.IceServerResponse; import com.faforever.client.api.IceSession; import com.faforever.client.mapstruct.IceServerMapper; import com.faforever.client.mapstruct.MapperSetup; @@ -13,7 +14,6 @@ import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Spy; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import java.util.List; @@ -44,9 +44,9 @@ public void setUp() throws Exception { @Test public void testGetActiveCoturns() { - when(fafApiAccessor.getApiObjects("/ice/server", IceServer.class)).thenReturn(Flux.empty()); + when(fafApiAccessor.getApiObject("/ice/server", IceServerResponse.class)).thenReturn(Mono.empty()); instance.getActiveCoturns(); - verify(fafApiAccessor).getApiObjects("/ice/server", IceServer.class); + verify(fafApiAccessor).getApiObject("/ice/server", IceServerResponse.class); } @Test