Skip to content

Commit

Permalink
Update LobbyTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
odo3990 authored Apr 30, 2024
1 parent 99888c6 commit 375745f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/test/java/wordsearch/LobbyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@

public class LobbyTest {

private Lobby lobby;
private Player player1;
private Player player2;
private ChatMessages chatMessage;
private LobbyTest lobby;
private PlayerTest player1;
private PlayerTest player2;
private ChatMessagesTest chatMessage;


public void setUp() {

lobby = new Lobby("lobbyUUID");
lobby = new LobbyTest("lobbyUUID");

player1 = new Player("uuid1", null);
player2 = new Player("uuid2", null);
player1 = new PlayerTest("uuid1", null);
player2 = new PlayerTest("uuid2", null);

lobby.addPlayer(player1);
lobby.addPlayer(player2);

chatMessage = new ChatMessages("lobbyUUID", "uuid1", "Hello, world!");
chatMessage = new ChatMessagesTest("lobbyUUID", "uuid1", "Hello, world!");
}

@Test
Expand Down Expand Up @@ -56,7 +56,7 @@ public void testDisplayChatMessage() {

@Test
public void testCheckGameModeFull() {
player1.setGameMode(GameMode.DUOS);
player1.setGameMode(GameModeTest.DUOS);
lobby.addPlayer(player1);

assertEquals(1, lobby.getPlayerCount());
Expand Down

0 comments on commit 375745f

Please sign in to comment.