From 7d7d183f7d28478b4cbaed303bd8efd7b340a108 Mon Sep 17 00:00:00 2001 From: bmares Date: Tue, 16 Apr 2024 22:14:19 -0500 Subject: [PATCH] Added to PlayerTypeTest and UserInterfaceTest --- src/test/java/uta/cse3310/PlayerTypeTest.java | 5 +++++ .../java/uta/cse3310/UserInterfaceTest.java | 12 ++++++++++++ .../uta/cse3310/PlayerTypeTest.class | Bin 1291 -> 1442 bytes .../uta/cse3310/UserInterfaceTest.class | Bin 831 -> 959 bytes 4 files changed, 17 insertions(+) diff --git a/src/test/java/uta/cse3310/PlayerTypeTest.java b/src/test/java/uta/cse3310/PlayerTypeTest.java index 776e0da..41b1608 100644 --- a/src/test/java/uta/cse3310/PlayerTypeTest.java +++ b/src/test/java/uta/cse3310/PlayerTypeTest.java @@ -28,4 +28,9 @@ public void checkValidNicknameAndColor() { assertEquals(PlayerType.Status.Waiting, player.getStatus()); } + @Test + public void checkPlayerIsPlaying() { + PlayerType player = new PlayerType("Anthony", "Green", PlayerType.Status.Playing); + assertEquals(PlayerType.Status.Playing, player.getStatus()); + } } diff --git a/src/test/java/uta/cse3310/UserInterfaceTest.java b/src/test/java/uta/cse3310/UserInterfaceTest.java index a9f744c..1416e49 100644 --- a/src/test/java/uta/cse3310/UserInterfaceTest.java +++ b/src/test/java/uta/cse3310/UserInterfaceTest.java @@ -29,6 +29,18 @@ public void testSetReadyUp() { assertTrue(userInterface.getReadyUp()); } + @Test + public void testUnReadyUp(){ + // Create a UserInterface object with readyUp set to true + UserInterface userInterface = new UserInterface(true); + + // Set readyUp to false + userInterface.setReadyUp(false); + + // Verify that getReadyUp returns false after setting it to false + assertFalse(userInterface.getReadyUp()); + } + // Add more test methods as needed to cover other functionalities of the UserInterface class } diff --git a/target/test-classes/uta/cse3310/PlayerTypeTest.class b/target/test-classes/uta/cse3310/PlayerTypeTest.class index 903255ff32687c34277e6f1d17d6c795649dbff3..b2307002374508733b4b21ec53700ceb6360398e 100644 GIT binary patch literal 1442 zcma)6YflqF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