From a0c26bd39d6ac95910de4da3edb46d9e70e440a0 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sat, 5 Jun 2021 23:17:17 +0200 Subject: [PATCH] fix: fixed DisconnectSegmentTest according to Lobby API changes --- .../server/lobby/pipelining/DisconnectSegmentTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/src/test/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegmentTest.java b/Server/src/test/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegmentTest.java index 86e411d..de8f272 100644 --- a/Server/src/test/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegmentTest.java +++ b/Server/src/test/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegmentTest.java @@ -80,7 +80,7 @@ class DisconnectSegmentTest { AtomicBoolean abort = new AtomicBoolean(false); disconnectSegment.processRequests(packet, new ArrayList<>(), abort); assertThat(packet).doesNotContain(requests); - verify(connection).removePlayer(player1); + verify(connection).removeParticipant(player1); assertThat(verify(connection).hasPlayer1()).isFalse(); verify(connection).hasPlayer2(); } @@ -96,8 +96,8 @@ class DisconnectSegmentTest { AtomicBoolean abort = new AtomicBoolean(false); disconnectSegment.processRequests(packet, new ArrayList<>(), abort); assertThat(packet).doesNotContain(requests); - verify(connection).removePlayer(player2); + verify(connection).removeParticipant(player2); verify(connection).hasPlayer1(); assertThat(verify(connection).hasPlayer2()).isFalse(); } -} \ No newline at end of file +}