Exemplo n.º 1
0
 @Test
 public void newBallIsNotInside() {
   Ball ball = new DummyPhysics().createBall();
   Goalpost gp = new DummyPhysics().createGoalpost(Direction.NORTH);
   assertFalse(gp.isInside(ball));
 }
Exemplo n.º 2
0
 @Test
 public void createGoalpost_South() {
   Goalpost gp = new DummyPhysics().createGoalpost(Direction.SOUTH);
   assertEquals(gp.getFacing(), Direction.SOUTH);
 }