Пример #1
0
 @Test
 public void newBallIsNotInside() {
   Ball ball = new DummyPhysics().createBall();
   Goalpost gp = new DummyPhysics().createGoalpost(Direction.NORTH);
   assertFalse(gp.isInside(ball));
 }
Пример #2
0
 @Test
 public void createGoalpost_South() {
   Goalpost gp = new DummyPhysics().createGoalpost(Direction.SOUTH);
   assertEquals(gp.getFacing(), Direction.SOUTH);
 }