Loaded the rest of the legs of the bermuda course in as an example race
#story[9] #implement
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user