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);
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,7 +96,7 @@ 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();
}