Exemple #1
0
 @Test
 public void testGet() {
   pack.put(card);
   pack.put(card2);
   pack.put(card3);
   pack.put(card4);
   assertTrue(pack.get() == card4);
 }
Exemple #2
0
 @Test
 public void testPut() {
   pack.put(card);
   pack.put(card2);
   pack.put(card3);
   pack.put(card4);
   assertEquals(pack.position, 4);
 }