Minor cleaning in yacht class

tags: #story[1124]
This commit is contained in:
William Muir
2017-08-03 13:53:30 +12:00
parent 1c0d869894
commit db078538ff
3 changed files with 3 additions and 124 deletions
@@ -1,28 +0,0 @@
package seng302.models;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import seng302.model.PolarTable;
import seng302.model.Yacht;
import seng302.model.GeoPoint;
public class YachtTest {
Double windDir;
Double windSpd;
List<Yacht> yachts = new ArrayList<>();
@Before
public void setUp() {
PolarTable.parsePolarFile(getClass().getResourceAsStream("/config/acc_polars.csv"));
windDir = 90d;
windSpd = 10d;
yachts.add(new Yacht("Yacht 1", "Y1", new GeoPoint(-30.0, 20.0), 160.0));
yachts.add(new Yacht("Yacht 2", "Y2", new GeoPoint(-40.0, -20.0), 100.0));
yachts.add(new Yacht("Yacht 3", "Y3", new GeoPoint(-35.0, -15.5), 20.0));
}
}