diff --git a/src/test/java/uta/cse3310/GameLogicTest.java b/src/test/java/uta/cse3310/GameLogicTest.java index beaffe8..15eecda 100644 --- a/src/test/java/uta/cse3310/GameLogicTest.java +++ b/src/test/java/uta/cse3310/GameLogicTest.java @@ -2,6 +2,7 @@ import static org.junit.Assert.*; + import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -32,11 +33,11 @@ public void setUp() { mockBroadcast = new MockBroadcast(); gameLogic = new GameLogic(players, mockBroadcast); gameLogic.validWords.add("word"); + gameLogic.setValidWords(Arrays.asList("word", "test", "example")); } @Test public void testIsValidWord() { - // Assuming isValidWord checks something about the first player assertTrue(gameLogic.isValidWord("word")); assertFalse(gameLogic.isValidWord("nonexistent")); }