Loaded the rest of the legs of the bermuda course in as an example race

#story[9] #implement
This commit is contained in:
Erika
2017-03-19 21:30:49 +13:00
parent 192178760e
commit cf5de5962a
6 changed files with 48 additions and 27 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
package seng302.Model;
import org.junit.Ignore;
import org.junit.Test;
import seng302.GPSCoordinate;
import seng302.Model.BoatInRace;
@@ -16,11 +17,13 @@ import static org.junit.Assert.assertTrue;
public class RaceTest {
@Ignore
@Test
public void singleBoatRaceRunsAndFinishes(){
BoatInRace boat = new BoatInRace("NZ", 240);
BoatInRace[] boats = new BoatInRace[] {boat};
ArrayList<BoatInRace> boats = new ArrayList<>();
boats.add(boat);
ArrayList<Leg> legs = new ArrayList<>();
legs.add(new Leg("Start", new GPSCoordinate(0,0), new GPSCoordinate(1,1), 0));
ConstantVelocityRace race = new ConstantVelocityRace(boats, legs);