@Test public void sunset_givenPredator_givenFoodIs12_thenFoodIs11() throws Exception { Predator predator = new Penguin(true); test.myAnimals = new Animal[]{predator}; test.sunset(); int actual = predator.withoutFood; Assert.assertEquals("Predator.getWithoutFood() is wrong:\n" + actual, 11, actual); assertAnimals(new Animal[]{predator}); }
public void sunset() { }
Position { public void sunset() { } }
Position { public void sunset() { }  }
Position { public void sunset() { }  void reset(char movesNext); void applyMoves(Move[] move); char theWinner(); Animal[][] boardRepresentation(); @Override String toString(); String getMovesString(); String getPredatorWithoutFood(); void sunset(); void setMyAnimals(Animal... myAnimals); }
Position { public void sunset() { }  void reset(char movesNext); void applyMoves(Move[] move); char theWinner(); Animal[][] boardRepresentation(); @Override String toString(); String getMovesString(); String getPredatorWithoutFood(); void sunset(); void setMyAnimals(Animal... myAnimals);  }