package strength;

import static org.junit.Assert.*;

import org.junit.Test;

import com.google.common.collect.Ordering;

import apostov.Suit;
import apostov.Value;

public class PokerHandRankingTest {

	@Test
	public void testStraightFlushRanking() {
		final StraightFlushRanking sf1 = new StraightFlushRanking(Value.EIGHT, Suit.HEARTS);
		final StraightFlushRanking sf2 = new StraightFlushRanking(Value.TEN, Suit.HEARTS);
		final StraightFlushRanking sf3 = new StraightFlushRanking(Value.NINE, Suit.HEARTS);
		
		final Ordering<StraightFlushRanking> ordering = StraightFlushRanking.ordering();
		final StraightFlushRanking bestRanking = ordering.max(sf1, sf2, sf3);
		final StraightFlushRanking worstRanking = ordering.min(sf1, sf2, sf3);
		assertEquals(Value.TEN, bestRanking.highestCardValue);
		assertEquals(Value.EIGHT, worstRanking.highestCardValue);
	}
}

@@ -62,25 +62,100 @@
 ort 
-org.junit.Test;%0D%0A
+java.util.List;%0D%0A%0D%0Aimport org.junit.Test;%0D%0A%0D%0Aimport com.google.common.collect.ImmutableList;
 %0D%0Aim
@@ -194,24 +194,46 @@
 rdering;%0D%0A%0D%0A
+import apostov.Card;%0D%0A
 import apost
@@ -976,11 +976,770 @@
 );%0D%0A%09%7D%0D%0A
+%09%0D%0A%09@Test%0D%0A%09public void testFullHouseRanking() %7B%0D%0A%09%09final FullHouseRanking fh1 = new FullHouseRanking(%0D%0A%09%09%09%09new Card(Value.SIX, Suit.CLUBS),%0D%0A%09%09%09%09new Card(Value.SIX, Suit.HEARTS),%0D%0A%09%09%09%09new Card(Value.SIX, Suit.SPADES),%0D%0A%09%09%09%09new Card(Value.TWO, Suit.HEARTS),%0D%0A%09%09%09%09new Card(Value.TWO, Suit.DIAMONDS));%0D%0A%09%09%0D%0A%09%09final FullHouseRanking fh2 = new FullHouseRanking(%0D%0A%09%09%09%09new Card(Value.TWO, Suit.CLUBS),%0D%0A%09%09%09%09new Card(Value.TWO, Suit.HEARTS),%0D%0A%09%09%09%09new Card(Value.TWO, Suit.SPADES),%0D%0A%09%09%09%09new Card(Value.ACE, Suit.HEARTS),%0D%0A%09%09%09%09new Card(Value.ACE, Suit.DIAMONDS));%0D%0A%09%09%0D%0A%09%09final List%3CFullHouseRanking%3E sortedCopy = FullHouseRanking.ordering().sortedCopy(ImmutableList.of(fh1, fh2));%0D%0A%09%09assertSame(fh1, sortedCopy.get(1));%0D%0A%09%09assertSame(fh2, sortedCopy.get(0));%0D%0A%09%09%0D%0A%09%7D%0D%0A
 %7D%0D%0A

Add a JUnit test for FullHouseRanking