From 41c58743422ee4c1e24923635f47ec5b15276854 Mon Sep 17 00:00:00 2001 From: fdai7736 Date: Wed, 7 Feb 2024 21:06:50 +0100 Subject: [PATCH] add card test --- src/test/java/de/hsfulda/onses/CardTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/CardTest.java b/src/test/java/de/hsfulda/onses/CardTest.java index d7ea092..57d5060 100644 --- a/src/test/java/de/hsfulda/onses/CardTest.java +++ b/src/test/java/de/hsfulda/onses/CardTest.java @@ -87,4 +87,14 @@ public class CardTest { } + @Test + @DisplayName("test if card is selected") + void testIfCardIsSelected() { + Card card = new Card().setSelected(true); + + assertTrue(card.isSelected()); + card.setSelected(false); + assertFalse(card.isSelected()); + } + } \ No newline at end of file