aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-09-03 23:32:52 +0200
committerSven Gothel <[email protected]>2014-09-03 23:32:52 +0200
commit101e229fa2f15b3492889205884ca98b1e9b3fbd (patch)
tree8a951d842f17ca85f48cdd0a326d2d2c1060e696 /src/test/com
parent71b8203572bc1bd63540818a9de4f927b0abebb1 (diff)
Bug 1060 - Add GLProfile.isInitialized(): Returns true if JOGL has been initialized
Diffstat (limited to 'src/test/com')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java
index dfa34be34..69ddb7771 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java
@@ -58,7 +58,14 @@ public class TestGLProfile00NEWT extends UITestCase {
@Test
public void test02InitSingleton() throws InterruptedException {
+ Assert.assertFalse("JOGL is initialized before usage", GLProfile.isInitialized());
GLProfile.initSingleton();
+ Assert.assertTrue("JOGL is not initialized after enforced initialization", GLProfile.isInitialized());
+ }
+
+ @Test
+ public void test11DumpDesktopGLInfo() throws InterruptedException {
+ Assert.assertTrue("JOGL is not initialized ...", GLProfile.isInitialized());
System.err.println("Desktop");
final GLDrawableFactory desktopFactory = GLDrawableFactory.getDesktopFactory();
if( null != desktopFactory ) {
@@ -67,7 +74,11 @@ public class TestGLProfile00NEWT extends UITestCase {
} else {
System.err.println("\tNULL");
}
+ }
+ @Test
+ public void test12DumpEGLGLInfo() throws InterruptedException {
+ Assert.assertTrue("JOGL is not initialized ...", GLProfile.isInitialized());
System.err.println("EGL");
final GLDrawableFactory eglFactory = GLDrawableFactory.getEGLFactory();
if( null != eglFactory ) {