コード例 #1
0
 @Test
 public void testPosition() {
   player.setPos(pos2);
   position test = player.getPos();
   assertEquals(200, test.getX());
   assertEquals(300, test.getY());
 }
コード例 #2
0
 @Test
 public void testKonstruktor() {
   position test = player.getPos();
   assertEquals(100, test.getX());
   assertEquals(50, test.getY());
 }