@Test public void testInstantion() { Card card1 = new Card(Suit.HEART, "5"); Card card2 = new Card(Suit.SPADE, "K"); assertNotNull(card1); assertNotNull(card2); assertEquals(10, card2.getValue()); assertEquals("HEART", card1.getSuit().toString()); assertEquals("5", card1.getDescription()); }
@Test public final void testGetValue() { Assert.assertEquals(CardValue.ACE, AC.getValue()); Assert.assertEquals(CardValue.KING, KH.getValue()); Assert.assertEquals(AC.getValue(), AC2.getValue()); Assert.assertFalse(AC.getValue().equals(KH.getValue())); }