From 2d5492601f952103ffbb04f377b5c0f512357a23 Mon Sep 17 00:00:00 2001 From: Calum Date: Sun, 13 Aug 2017 20:40:18 +1200 Subject: [PATCH] Fixed build issues caused by changes to a yacht step turn constant. #bug --- pom.xml | 15 --------------- src/test/java/seng302/models/YachtTest.java | 6 +++--- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index b329e067..fca06536 100644 --- a/pom.xml +++ b/pom.xml @@ -69,24 +69,9 @@ commons-cli 1.4 - - - org.testfx - testfx-core - 4.0.1-alpha - test - - - - org.testfx - testfx-junit - 4.0.6-alpha - test - - diff --git a/src/test/java/seng302/models/YachtTest.java b/src/test/java/seng302/models/YachtTest.java index fd610dfc..53e0ac41 100644 --- a/src/test/java/seng302/models/YachtTest.java +++ b/src/test/java/seng302/models/YachtTest.java @@ -37,12 +37,12 @@ public class YachtTest { for (Double begin : values.keySet()) { y1.setHeading(begin); y1.tackGybe(windDirection); - for (int i = 0; i < 50; i++) { + + for (int i = 0; i < 200; i++) { y1.runAutoPilot(); } assertEquals(values.get(begin), y1.getHeading(), 5.0); } - } @Test @@ -70,7 +70,7 @@ public class YachtTest { System.out.println(begin); y1.setHeading(begin); y1.turnToVMG(); - for (int i = 0; i < 50; i++) { + for (int i = 0; i < 200; i++) { y1.runAutoPilot(); System.out.println(y1.getHeading()); }