fix: fixed DisconnectSegmentTest according to Lobby API changes

This commit is contained in:
Yannik Bretschneider 2021-06-05 23:17:17 +02:00
parent 2f2bbea213
commit a0c26bd39d

View File

@ -80,7 +80,7 @@ class DisconnectSegmentTest {
AtomicBoolean abort = new AtomicBoolean(false); AtomicBoolean abort = new AtomicBoolean(false);
disconnectSegment.processRequests(packet, new ArrayList<>(), abort); disconnectSegment.processRequests(packet, new ArrayList<>(), abort);
assertThat(packet).doesNotContain(requests); assertThat(packet).doesNotContain(requests);
verify(connection).removePlayer(player1); verify(connection).removeParticipant(player1);
assertThat(verify(connection).hasPlayer1()).isFalse(); assertThat(verify(connection).hasPlayer1()).isFalse();
verify(connection).hasPlayer2(); verify(connection).hasPlayer2();
} }
@ -96,8 +96,8 @@ class DisconnectSegmentTest {
AtomicBoolean abort = new AtomicBoolean(false); AtomicBoolean abort = new AtomicBoolean(false);
disconnectSegment.processRequests(packet, new ArrayList<>(), abort); disconnectSegment.processRequests(packet, new ArrayList<>(), abort);
assertThat(packet).doesNotContain(requests); assertThat(packet).doesNotContain(requests);
verify(connection).removePlayer(player2); verify(connection).removeParticipant(player2);
verify(connection).hasPlayer1(); verify(connection).hasPlayer1();
assertThat(verify(connection).hasPlayer2()).isFalse(); assertThat(verify(connection).hasPlayer2()).isFalse();
} }
} }