@Test public void shouldSortRanksThanSuits() { CardSet cardSet = new CardSet( aCard(CLUB, ACE), aCard(HEART, KING), aCard(DIAMOND, ACE), aCard(SPADE, ACE), aCard(HEART, ACE)); List<Card> sortedCards = cardSet.getSortedCards(); assertThat(sortedCards) .containsSequence( aCard(HEART, ACE), aCard(DIAMOND, ACE), aCard(CLUB, ACE), aCard(SPADE, ACE), aCard(HEART, KING)); }
public List<Card> getSortedCards() { return sortedCards; }
CardSet { public List<Card> getSortedCards() { return sortedCards; } }
CardSet { public List<Card> getSortedCards() { return sortedCards; } CardSet(Card card1, Card card2, Card card3, Card card4, Card card5); }
CardSet { public List<Card> getSortedCards() { return sortedCards; } CardSet(Card card1, Card card2, Card card3, Card card4, Card card5); List<Card> getSortedCards(); }
CardSet { public List<Card> getSortedCards() { return sortedCards; } CardSet(Card card1, Card card2, Card card3, Card card4, Card card5); List<Card> getSortedCards();  }