From 79a2f310566d0f74e2c422b3f8158c249b58092d Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 13 May 2019 11:32:57 -0400 Subject: [PATCH] Fixed unit tests --- tests/src/test/java/ApplicationTests.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/src/test/java/ApplicationTests.java b/tests/src/test/java/ApplicationTests.java index 82fd7e9774..875ae50e6c 100644 --- a/tests/src/test/java/ApplicationTests.java +++ b/tests/src/test/java/ApplicationTests.java @@ -1,6 +1,5 @@ import io.anuke.arc.ApplicationCore; import io.anuke.arc.backends.headless.HeadlessApplication; -import io.anuke.arc.backends.headless.HeadlessApplicationConfiguration; import io.anuke.arc.collection.Array; import io.anuke.arc.math.geom.Point2; import io.anuke.arc.util.Log; @@ -64,16 +63,7 @@ public class ApplicationTests{ } }; - HeadlessApplicationConfiguration config = new HeadlessApplicationConfiguration(); - - new HeadlessApplication(core, config); - - for(Thread thread : Thread.getAllStackTraces().keySet()){ - if(thread.getName().equals("HeadlessApplication")){ - thread.setUncaughtExceptionHandler((t, throwable) -> exceptionThrown[0] = throwable); - break; - } - } + new HeadlessApplication(core, null, throwable -> exceptionThrown[0] = throwable); while(!begins[0]){ if(exceptionThrown[0] != null){