Ejemplo n.º 1
0
  @Test
  public void testIsAcceptableCombination() throws Exception {
    Card cards[] =
        new Card[] {
          PokerDeck.getCard(CardSuitType.DIAMOND, CardDenominationType.ACE),
          PokerDeck.getCard(CardSuitType.DIAMOND, CardDenominationType.D10),
          PokerDeck.getCard(CardSuitType.SPADE, CardDenominationType.D9),
          PokerDeck.getCard(CardSuitType.CLUB, CardDenominationType.D5),
          PokerDeck.getCard(CardSuitType.CLUB, CardDenominationType.D4)
        };

    HighCard highCard = new HighCard();
    assertTrue(highCard.isAcceptableCombination(cards));
  }