Added a new method to the GameThread so it can reset between tests
@@ -107,6 +107,13 @@ public static void setToCurrentThread() {
}
}
+ /**
+ * Sets the game thread to null. Should called after a test that calls engine.initialise() is finished.
+ */
+ public static void reset() {
+ gameThread = null;
+ }
+
/**
* A process decorated allowing a thread to block until the process has been run.
*/
