mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Attempted fix for build issues due to javaFX toolkit not being initialized.
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
package seng302;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
public class TestRaceTimer {
|
|
||||||
@Test
|
|
||||||
public void testPositiveTimeString(){
|
|
||||||
// RaceViewController controller = new RaceViewController();
|
|
||||||
// String result = controller.convertTimeToMinutesSeconds(61);
|
|
||||||
//
|
|
||||||
// assertTrue(result.equals("01:01"));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testNegativeTimeString(){
|
|
||||||
// RaceViewController controller = new RaceViewController();
|
|
||||||
// String result = controller.convertTimeToMinutesSeconds(-61);
|
|
||||||
//
|
|
||||||
// assertTrue(result.equals("-01:01"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -67,12 +67,10 @@ public class YachtTest {
|
|||||||
values.put(350d, downwindRight);
|
values.put(350d, downwindRight);
|
||||||
|
|
||||||
for (Double begin : values.keySet()) {
|
for (Double begin : values.keySet()) {
|
||||||
System.out.println(begin);
|
|
||||||
y1.setHeading(begin);
|
y1.setHeading(begin);
|
||||||
y1.turnToVMG();
|
y1.turnToVMG();
|
||||||
for (int i = 0; i < 200; i++) {
|
for (int i = 0; i < 200; i++) {
|
||||||
y1.runAutoPilot();
|
y1.runAutoPilot();
|
||||||
System.out.println(y1.getHeading());
|
|
||||||
}
|
}
|
||||||
y1.disableAutoPilot();
|
y1.disableAutoPilot();
|
||||||
assertEquals(values.get(begin), y1.getHeading(), 5.0);
|
assertEquals(values.get(begin), y1.getHeading(), 5.0);
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class RegularPacketsTest {
|
|||||||
serverThread.terminate();
|
serverThread.terminate();
|
||||||
clientThread.setSocketToClose();
|
clientThread.setSocketToClose();
|
||||||
GameState.setCurrentStage(GameStages.LOBBYING);
|
GameState.setCurrentStage(GameStages.LOBBYING);
|
||||||
for (int i = 0; i<6; i++)
|
for (int i = 0; i<20; i++)
|
||||||
SleepThreadMaxDelay(); //Make sure socket is closed.
|
SleepThreadMaxDelay(); //Make sure socket is closed and toolkit remade.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user