refactor: renamed GameLogic segment
This commit is contained in:
parent
6a0bef616f
commit
7653f5217c
@ -1,29 +1,23 @@
|
||||
package uulm.teamname.marvelous.server.lobby.pipelining;
|
||||
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import uulm.teamname.marvelous.gamelibrary.events.Event;
|
||||
import uulm.teamname.marvelous.gamelibrary.events.EventBuilder;
|
||||
import uulm.teamname.marvelous.gamelibrary.requests.GameRequest;
|
||||
import uulm.teamname.marvelous.gamelibrary.requests.RequestBuilder;
|
||||
import uulm.teamname.marvelous.gamelibrary.events.EventType;
|
||||
import uulm.teamname.marvelous.gamelibrary.events.GameEvent;
|
||||
import uulm.teamname.marvelous.gamelibrary.gamelogic.GameInstance;
|
||||
import uulm.teamname.marvelous.gamelibrary.requests.Request;
|
||||
import uulm.teamname.marvelous.gamelibrary.requests.RequestType;
|
||||
import uulm.teamname.marvelous.server.lobbymanager.Participant;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import static org.mockito.Mockito.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
class GameStateSegmentTest {
|
||||
class GameLogicSegmentTest {
|
||||
|
||||
@Test
|
||||
void processRequests() {
|
||||
@ -33,7 +27,7 @@ class GameStateSegmentTest {
|
||||
when(game.checkRequestsAndApply(any(ArrayList.class))).thenReturn(Optional.of(List.of(event)));
|
||||
var abort = new AtomicBoolean(false);
|
||||
|
||||
var segment = new GameStateSegment(game);
|
||||
var segment = new GameLogicSegment(game);
|
||||
|
||||
// note that DisconnectRequests are actually never passed to the GameLogic, ever.
|
||||
var packet = new Packet(
|
||||
|
Loading…
Reference in New Issue
Block a user