Make a blackjack game, play against the computer-dealer.

CardsTest.java 453B

1234567891011121314151617181920212223
  1. import org.junit.Assert;
  2. import static org.junit.Assert.*;
  3. public class CardsTest {
  4. @org.junit.Before
  5. public void setUp() throws Exception {
  6. }
  7. @org.junit.After
  8. public void tearDown() throws Exception {
  9. }
  10. @org.junit.Test
  11. public void generateCard() {
  12. Cards card = new Cards();
  13. Integer testCardValue = card.generateCard();
  14. Assert.assertTrue(testCardValue >= 1 && testCardValue <= 13);
  15. }
  16. }