Added two test boats to race
#story[9] #implement
This commit is contained in:
@@ -17,18 +17,18 @@ import static org.junit.Assert.assertTrue;
|
||||
public class RaceTest {
|
||||
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void singleBoatRaceRunsAndFinishes(){
|
||||
|
||||
BoatInRace boat = new BoatInRace("NZ", 240);
|
||||
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);
|
||||
race.run();
|
||||
}
|
||||
// @Ignore
|
||||
// @Test
|
||||
// public void singleBoatRaceRunsAndFinishes(){
|
||||
//
|
||||
// BoatInRace boat = new BoatInRace("NZ", 240);
|
||||
// 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);
|
||||
// race.run();
|
||||
// }
|
||||
//
|
||||
// @Test
|
||||
// public void fasterBoatFinishesFirst() {
|
||||
|
||||
Reference in New Issue
Block a user