From 98d7d3af314a135129266d59f8068793ff617073 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Mon, 5 Feb 2024 19:25:54 +0100 Subject: [PATCH] Test.CheckIfTestCanBeSetToTrue --- src/test/java/de/hsfulda/onses/GameServiceTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index 0dd4bd6..3428842 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -424,4 +424,14 @@ public class GameServiceTest { assertFalse(gameService.getTest()); } + + @Test + @DisplayName("CheckIfTestCanBeSetToTrue") + public void CheckIfTestCanBeSetToTrue() { + GameService gameService = new GameService(); + + gameService.setTest(!gameService.getTest()); + + assertTrue(gameService.getTest()); + } }