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