This commit is contained in:
2015-04-23 09:07:08 +02:00
parent 48c21b47dc
commit a54694bcbf
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package session3;
public class PokerGame {
public int getHand() {
return 5;
}
}

View File

@@ -0,0 +1,24 @@
package session3;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PokerGameTest {
// FIXME give_me_five
// FIXME draw_one_card
// FIXME draw_five_cards
// FIXME draw_one_hand
// FIXME compare_two_hands
// FIXME find_highest_score
PokerGame myGame = new PokerGame();
@Test
public void give_me_five() throws Exception {
int result = myGame.getHand();
assertEquals(5, result);
}
}