29package com.jogamp.opengl.test.junit.jogl.acore;
31import java.io.IOException;
33import org.junit.Assert;
35import org.junit.FixMethodOrder;
36import org.junit.runners.MethodSorters;
38import com.jogamp.opengl.*;
40import com.jogamp.common.os.Platform;
41import com.jogamp.opengl.JoglVersion;
42import com.jogamp.opengl.test.junit.util.UITestCase;
44@FixMethodOrder(MethodSorters.NAME_ASCENDING)
49 final String s1 =
"GL2";
50 final String s2 =
"GL2";
51 Assert.assertEquals(s1, s2);
52 Assert.assertTrue(
"s1-ref != s2-ref", s1 == s2);
53 Assert.assertTrue(
"s1-ref != 'GL2'-ref", s1 ==
"GL2");
56 Assert.assertTrue(
"GLProfile-ref != 'GL2'-ref",
GLProfile.
GL2 ==
"GL2");
69 System.err.println(
"Desktop");
71 if(
null != desktopFactory ) {
73 System.err.println(Platform.getNewline()+Platform.getNewline()+Platform.getNewline());
75 System.err.println(
"\tNULL");
82 System.err.println(
"ES");
84 if(
null != esFactory ) {
87 System.err.println(
"\tNULL");
91 public static void main(
final String args[])
throws IOException {
93 org.junit.runner.JUnitCore.
main(tstname);
abstract AbstractGraphicsDevice getDefaultDevice()
Retrieve the default device connection, unit ID and unique ID name.
static GLDrawableFactory getFactory(final GLProfile glProfile)
Returns the sole GLDrawableFactory instance.
Specifies the the OpenGL profile.
static final String GL2
The desktop OpenGL profile 1.x up to 3.0.
static boolean isInitialized()
static void initSingleton()
Static initialization of JOGL.
static StringBuilder getDefaultOpenGLInfo(AbstractGraphicsDevice device, StringBuilder sb, final boolean withCapabilitiesInfo)
void test02InitSingleton()
void test11DumpDesktopGLInfo()
void test12DumpMobileGLInfo()
static void main(final String args[])
void test01InternedString()