Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Oct 31, 2023
1 parent 7d38c58 commit 8fd5129
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8fd5129

Please sign in to comment.