From 3f58b776708f8251ce674054341002ccbfaac4c4 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 7 Feb 2024 11:49:25 +0100 Subject: [PATCH] Test.facedownSetter --- src/test/java/de/hsfulda/onses/CardTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/CardTest.java b/src/test/java/de/hsfulda/onses/CardTest.java index 8f396b5..d7ea092 100644 --- a/src/test/java/de/hsfulda/onses/CardTest.java +++ b/src/test/java/de/hsfulda/onses/CardTest.java @@ -76,4 +76,15 @@ public class CardTest { assertEquals(expected, answer); } + @Test + @DisplayName("facedownSetter") + public void faceDownSetter() { + Card card = new Card(); + card.setFacedown(true); + boolean answer = card.isFacedown(); + boolean expected = true; + assertEquals(expected, answer); + + } + } \ No newline at end of file