mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user