123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package rocks.zipcode;
-
- import org.junit.Assert;
- import org.junit.Test;
-
- import java.util.ArrayList;
- import java.util.Collections;
-
- public class CardsTest {
-
- @org.junit.Before
- public void setUp() throws Exception {
- }
-
- @org.junit.After
- public void tearDown() throws Exception {
- }
-
- // @org.junit.Test
- // public void generateCard() {
- // Cards card = new Cards();
- // Integer testCardValue = card.generateCard();
- //
- // assertTrue((testCardValue >= 1 && testCardValue <= 13));
- // }
-
- @Test
- public void testRank() {
- }
-
- @Test
- public void testSuit() {
- }
-
- @Test
- public void testToString() {
- }
-
- @Test
- public void testNewDeck() {
- ArrayList<Cards> deck = Cards.newDeck();
-
- for (Cards card : deck) {
- System.out.println(card.toString());
- }
- Assert.assertTrue(true);
- }
-
- @Test
- public void testShuffleDeck() {
- ArrayList<Cards> deck = Cards.newDeck();
- Collections.shuffle(deck);
-
- for (Cards card : deck) {
- System.out.println(card.toString());
- }
- Assert.assertTrue(true);
- }
- }
|