diff options
author | Sven Gothel <[email protected]> | 2015-09-29 18:29:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-09-29 18:29:29 +0200 |
commit | fca9710b4e90691652ee6f32725f36a9c1cf08d3 (patch) | |
tree | c45335bade544cb001184d9d0c10b151aa24880c | |
parent | f607c0148736fa198fb91b60123824e53366022e (diff) |
Bug 1225: Unit test shall not fail if AWT is not alive, ignore it via assume
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |