Changed test to work with the new getHeading method, and removed an unused import that was causing tests to fail

- There was a com.sun import that we were no longer using that was causing issues

Tags: story[466]
This commit is contained in:
Michael Rausch
2017-03-24 20:33:53 +13:00
parent 5dd5e50738
commit c33586e7f5
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ public class EventTest {
Boat boat = new Boat("testBoat"); Boat boat = new Boat("testBoat");
Event event = new Event(1231242.2, boat, new SingleMark("mark1", 142.5, 122.1), new SingleMark("mark2", 121.9,99.2), 0); Event event = new Event(1231242.2, boat, new SingleMark("mark1", 142.5, 122.1), new SingleMark("mark2", 121.9,99.2), 0);
assertEquals(event.getBoatHeading(), 221.9733862944651, 1e-15); assertEquals(event.getBoatHeading(), 318.02661370553494g, 1e-15);
} }
@Test @Test
@@ -1,6 +1,5 @@
package seng302.models.parsers; package seng302.models.parsers;
import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import seng302.models.mark.*; import seng302.models.mark.*;