Race events now display the boats heading and direction

- The boats velocity is being read from the config file
- The event text is now being printed when the leg starts #fix

Tags: #story[7] #implement
This commit is contained in:
Michael Rausch
2017-03-08 12:31:31 +13:00
parent 76faa53222
commit ab1445f1c2
8 changed files with 130 additions and 57 deletions
-18
View File
@@ -10,24 +10,6 @@ import java.lang.reflect.Array;
*/
public class RaceTest
{
/*
Test that all boats that were added to the race also finish the race
*/
@Test
public void testFinishingBoats()
{
Boat boat1 = new Boat("Team 1");
Boat boat2 = new Boat("Team 2");
Boat boat3 = new Boat("Team 3");
Race race = new Race();
race.addBoat(boat1);
race.addBoat(boat2);
race.addBoat(boat3);
assertEquals(Array.getLength(race.getFinishedBoats()), 3);
}
/*
Test that all boats were added to the race
*/