Added single test to debug race process

This commit is contained in:
Erika Savell
2017-03-15 22:02:13 +13:00
parent dbbfece149
commit 2551dd7362
8 changed files with 57 additions and 36 deletions
+24
View File
@@ -0,0 +1,24 @@
package seng302;
import org.junit.Test;
import seng302.Model.BoatInRace;
import seng302.Model.ConstantVelocityRace;
import seng302.Model.Leg;
/**
* Created by esa46 on 15/03/17.
*/
public class RaceTest {
@Test
public void singleBoatRaceRunsAndFinishes(){
BoatInRace boat = new BoatInRace("NZ", 240);
BoatInRace[] boats = new BoatInRace[] {boat};
Leg leg1 = new Leg("first leg", 1, new GPSCoordinate(0, 0), new GPSCoordinate(3, 4), 0);
Leg[] legs = new Leg[] {leg1};
ConstantVelocityRace race = new ConstantVelocityRace(boats, legs);
race.run();
}
}