示例#1
0
 /**
  * Testing the public members of QPoint
  *
  * @author Sam Whitlock (cs61b-eo)
  */
 @Test
 public void QPoint1() {
   QPoint myPoint = new QPoint(52, 15, 29, -11, 71);
   assertTrue(myPoint.id() == 52);
   assertTrue(myPoint.x() == 15);
   assertTrue(myPoint.y() == 29);
   assertTrue(myPoint.xVelocity == -11);
   assertTrue(myPoint.yVelocity == 71);
 }