Added single test to debug race process
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user