Browse Source

add card test

main^2
fdai7736 11 months ago
parent
commit
41c5874342
  1. 10
      src/test/java/de/hsfulda/onses/CardTest.java

10
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());
}
} }
Loading…
Cancel
Save