From fca9710b4e90691652ee6f32725f36a9c1cf08d3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 29 Sep 2015 18:29:29 +0200 Subject: Bug 1225: Unit test shall not fail if AWT is not alive, ignore it via assume --- .../test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java index bba83bdbb..2a14390ce 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java @@ -58,6 +58,7 @@ import com.jogamp.opengl.GLEventListener; import com.jogamp.opengl.awt.GLCanvas; import org.junit.Test; +import org.junit.Assume; import org.junit.FixMethodOrder; import org.junit.runners.MethodSorters; @@ -125,7 +126,8 @@ public class TestBug1225EventQueueInterruptedAWT extends UITestCase { } } void testImpl(final boolean useGL) throws InterruptedException, InvocationTargetException { - Assert.assertTrue("AWT not alive", AWTRobotUtil.isAWTEDTAlive()); + Assume.assumeTrue("AWT not alive", AWTRobotUtil.isAWTEDTAlive()); + // Assert.assertTrue("AWT not alive", AWTRobotUtil.isAWTEDTAlive()); final OurUncaughtExceptionHandler uncaughtHandler = new OurUncaughtExceptionHandler(); Thread.setDefaultUncaughtExceptionHandler( uncaughtHandler ); -- cgit v1.2.3