예제 #1
0
 @Test
 public void testPickup() {
   Pickup pickup = new Pickup(1, 1, "unknown");
   assertNotNull(pickup);
   assertEquals("unknown", pickup.getType());
   assertEquals(0, pickup.getWidth());
   assertEquals(0, pickup.getHeight());
   assertEquals(1, pickup.getYPos());
   assertEquals(1, pickup.getXPos());
 }
예제 #2
0
 @Test
 public void testGetType() {
   Pickup pickup = new Pickup(1, 1, "unknown");
   assertEquals("unknown", pickup.getType());
 }