@Test public void shouldSortRanks() { CardSet cardSet = new CardSet( aCard(HEART, TEN), aCard(HEART, KING), aCard(HEART, ACE), aCard(HEART, QUEEN), aCard(HEART, JACK)); List<Card> sortedCards = cardSet.getSortedCards(); assertThat(sortedCards) .containsSequence( aCard(HEART, ACE), aCard(HEART, KING), aCard(HEART, QUEEN), aCard(HEART, JACK), aCard(HEART, TEN)); }
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();  }