summaryrefslogtreecommitdiffstats
path: root/maven/tests
diff options
context:
space:
mode:
Diffstat (limited to 'maven/tests')
-rw-r--r--maven/tests/pom.in30
-rwxr-xr-xmaven/tests/pom.sh21
-rw-r--r--maven/tests/test-jogl-all-mobile/pom.in74
-rw-r--r--maven/tests/test-jogl-all-mobile/src/test/java/org/jogamp/maven/tests/TestNEWT.java91
-rw-r--r--maven/tests/test-jogl-all-noawt/pom.in74
-rw-r--r--maven/tests/test-jogl-all-noawt/src/test/java/org/jogamp/maven/tests/TestNEWT.java91
-rw-r--r--maven/tests/test-jogl-all/pom.in74
-rw-r--r--maven/tests/test-jogl-all/src/test/java/org/jogamp/maven/tests/TestNEWT.java91
-rw-r--r--maven/tests/test-jogl-atomics/pom.in107
-rw-r--r--maven/tests/test-jogl-atomics/src/test/java/org/jogamp/maven/tests/TestNEWT.java95
10 files changed, 748 insertions, 0 deletions
diff --git a/maven/tests/pom.in b/maven/tests/pom.in
new file mode 100644
index 0000000..97c33b7
--- /dev/null
+++ b/maven/tests/pom.in
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <!-- Auto generated by pom.sh - Do not edit! -->
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jogamp.maven</groupId>
+ <artifactId>tests</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <packaging>pom</packaging>
+ <name>tests</name>
+ <description>Test suite for Maven packages</description>
+ <url>http://jogamp.org/</url>
+
+ <modules>
+ <module>test-jogl-all-mobile</module>
+ <module>test-jogl-all-noawt</module>
+ <module>test-jogl-all</module>
+ <module>test-jogl-atomics</module>
+ </modules>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+
+</project>
diff --git a/maven/tests/pom.sh b/maven/tests/pom.sh
new file mode 100755
index 0000000..c7ca6f4
--- /dev/null
+++ b/maven/tests/pom.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+if [ $# -ne 2 ]
+then
+ echo "usage: pom.in version" 1>&2
+ exit 1
+fi
+
+POM_IN="$1"
+shift
+VERSION="$1"
+shift
+
+if [ -z "${REPOSITORY_URL}" ]
+then
+ echo "REPOSITORY_URL is unset" 1>&2
+ exit 1
+fi
+
+exec m4 \
+ -DJOGAMP_VERSION="${VERSION}" -DREPOSITORY_URL="${REPOSITORY_URL}" < "${POM_IN}"
diff --git a/maven/tests/test-jogl-all-mobile/pom.in b/maven/tests/test-jogl-all-mobile/pom.in
new file mode 100644
index 0000000..33f48e8
--- /dev/null
+++ b/maven/tests/test-jogl-all-mobile/pom.in
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <!-- Auto generated by pom.sh - Do not edit! -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jogamp.maven</groupId>
+ <artifactId>tests</artifactId>
+ <version>JOGAMP_VERSION</version>
+ </parent>
+
+ <artifactId>test-jogl-all-mobile</artifactId>
+ <packaging>jar</packaging>
+ <description>Test suite for Maven packages</description>
+ <url>http://jogamp.org/</url>
+
+ <repositories>
+ <repository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <id>tests</id>
+ <url>REPOSITORY_URL</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.11</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jogamp.jogl</groupId>
+ <artifactId>jogl-all-mobile-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.gluegen</groupId>
+ <artifactId>gluegen-rt-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Require JDK >= 1.6 -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/maven/tests/test-jogl-all-mobile/src/test/java/org/jogamp/maven/tests/TestNEWT.java b/maven/tests/test-jogl-all-mobile/src/test/java/org/jogamp/maven/tests/TestNEWT.java
new file mode 100644
index 0000000..8776f5e
--- /dev/null
+++ b/maven/tests/test-jogl-all-mobile/src/test/java/org/jogamp/maven/tests/TestNEWT.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright 2010 JogAmp Community. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ * NO EVENT SHALL JogAmp Community OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * The views and conclusions contained in the software and documentation are
+ * those of the authors and should not be interpreted as representing official
+ * policies, either expressed or implied, of JogAmp Community.
+ */
+
+package org.jogamp.maven.tests;
+
+import javax.media.opengl.GL;
+import javax.media.opengl.GLAutoDrawable;
+import javax.media.opengl.GLCapabilities;
+import javax.media.opengl.GLEventListener;
+import javax.media.opengl.GLProfile;
+
+import org.junit.Test;
+
+import com.jogamp.newt.opengl.GLWindow;
+
+@SuppressWarnings("static-method") public final class TestNEWT
+{
+ @Test public void testOpen()
+ throws InterruptedException
+ {
+ final GLProfile pro = GLProfile.getDefault();
+ final GLCapabilities caps = new GLCapabilities(pro);
+ final GLWindow window = GLWindow.create(caps);
+
+ window.setSize(640, 480);
+ window.addGLEventListener(new GLEventListener() {
+ @Override public void reshape(
+ final GLAutoDrawable drawable,
+ final int w,
+ final int h,
+ final int x,
+ final int y)
+ {
+ // Nothing
+ }
+
+ @Override public void init(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void dispose(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void display(
+ final GLAutoDrawable drawable)
+ {
+ final GL gl = drawable.getGL();
+ gl.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
+ gl.glClear(GL.GL_COLOR_BUFFER_BIT);
+ }
+ });
+
+ window.display();
+ window.setVisible(true);
+ Thread.sleep(1000);
+ window.setVisible(false);
+ window.destroy();
+ }
+}
diff --git a/maven/tests/test-jogl-all-noawt/pom.in b/maven/tests/test-jogl-all-noawt/pom.in
new file mode 100644
index 0000000..c254c56
--- /dev/null
+++ b/maven/tests/test-jogl-all-noawt/pom.in
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <!-- Auto generated by pom.sh - Do not edit! -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jogamp.maven</groupId>
+ <artifactId>tests</artifactId>
+ <version>JOGAMP_VERSION</version>
+ </parent>
+
+ <artifactId>test-jogl-all-noawt</artifactId>
+ <packaging>jar</packaging>
+ <description>Test suite for Maven packages</description>
+ <url>http://jogamp.org/</url>
+
+ <repositories>
+ <repository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <id>tests</id>
+ <url>REPOSITORY_URL</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.11</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jogamp.jogl</groupId>
+ <artifactId>jogl-all-noawt-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.gluegen</groupId>
+ <artifactId>gluegen-rt-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Require JDK >= 1.6 -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/maven/tests/test-jogl-all-noawt/src/test/java/org/jogamp/maven/tests/TestNEWT.java b/maven/tests/test-jogl-all-noawt/src/test/java/org/jogamp/maven/tests/TestNEWT.java
new file mode 100644
index 0000000..8776f5e
--- /dev/null
+++ b/maven/tests/test-jogl-all-noawt/src/test/java/org/jogamp/maven/tests/TestNEWT.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright 2010 JogAmp Community. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ * NO EVENT SHALL JogAmp Community OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * The views and conclusions contained in the software and documentation are
+ * those of the authors and should not be interpreted as representing official
+ * policies, either expressed or implied, of JogAmp Community.
+ */
+
+package org.jogamp.maven.tests;
+
+import javax.media.opengl.GL;
+import javax.media.opengl.GLAutoDrawable;
+import javax.media.opengl.GLCapabilities;
+import javax.media.opengl.GLEventListener;
+import javax.media.opengl.GLProfile;
+
+import org.junit.Test;
+
+import com.jogamp.newt.opengl.GLWindow;
+
+@SuppressWarnings("static-method") public final class TestNEWT
+{
+ @Test public void testOpen()
+ throws InterruptedException
+ {
+ final GLProfile pro = GLProfile.getDefault();
+ final GLCapabilities caps = new GLCapabilities(pro);
+ final GLWindow window = GLWindow.create(caps);
+
+ window.setSize(640, 480);
+ window.addGLEventListener(new GLEventListener() {
+ @Override public void reshape(
+ final GLAutoDrawable drawable,
+ final int w,
+ final int h,
+ final int x,
+ final int y)
+ {
+ // Nothing
+ }
+
+ @Override public void init(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void dispose(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void display(
+ final GLAutoDrawable drawable)
+ {
+ final GL gl = drawable.getGL();
+ gl.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
+ gl.glClear(GL.GL_COLOR_BUFFER_BIT);
+ }
+ });
+
+ window.display();
+ window.setVisible(true);
+ Thread.sleep(1000);
+ window.setVisible(false);
+ window.destroy();
+ }
+}
diff --git a/maven/tests/test-jogl-all/pom.in b/maven/tests/test-jogl-all/pom.in
new file mode 100644
index 0000000..1e0f98c
--- /dev/null
+++ b/maven/tests/test-jogl-all/pom.in
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <!-- Auto generated by pom.sh - Do not edit! -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jogamp.maven</groupId>
+ <artifactId>tests</artifactId>
+ <version>JOGAMP_VERSION</version>
+ </parent>
+
+ <artifactId>test-jogl-all</artifactId>
+ <packaging>jar</packaging>
+ <description>Test suite for Maven packages</description>
+ <url>http://jogamp.org/</url>
+
+ <repositories>
+ <repository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <id>tests</id>
+ <url>REPOSITORY_URL</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.11</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jogamp.jogl</groupId>
+ <artifactId>jogl-all-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.gluegen</groupId>
+ <artifactId>gluegen-rt-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Require JDK >= 1.6 -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/maven/tests/test-jogl-all/src/test/java/org/jogamp/maven/tests/TestNEWT.java b/maven/tests/test-jogl-all/src/test/java/org/jogamp/maven/tests/TestNEWT.java
new file mode 100644
index 0000000..6a01aa1
--- /dev/null
+++ b/maven/tests/test-jogl-all/src/test/java/org/jogamp/maven/tests/TestNEWT.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright 2010 JogAmp Community. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ * NO EVENT SHALL JogAmp Community OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * The views and conclusions contained in the software and documentation are
+ * those of the authors and should not be interpreted as representing official
+ * policies, either expressed or implied, of JogAmp Community.
+ */
+
+package org.jogamp.maven.tests;
+
+import javax.media.opengl.GL;
+import javax.media.opengl.GLAutoDrawable;
+import javax.media.opengl.GLCapabilities;
+import javax.media.opengl.GLEventListener;
+import javax.media.opengl.GLProfile;
+
+import org.junit.Test;
+
+import com.jogamp.newt.opengl.GLWindow;
+
+@SuppressWarnings("static-method") public final class TestNEWT
+{
+ @Test public void testOpen()
+ throws InterruptedException
+ {
+ final GLProfile pro = GLProfile.get(GLProfile.GL3);
+ final GLCapabilities caps = new GLCapabilities(pro);
+ final GLWindow window = GLWindow.create(caps);
+
+ window.setSize(640, 480);
+ window.addGLEventListener(new GLEventListener() {
+ @Override public void reshape(
+ final GLAutoDrawable drawable,
+ final int w,
+ final int h,
+ final int x,
+ final int y)
+ {
+ // Nothing
+ }
+
+ @Override public void init(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void dispose(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void display(
+ final GLAutoDrawable drawable)
+ {
+ final GL gl = drawable.getGL();
+ gl.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
+ gl.glClear(GL.GL_COLOR_BUFFER_BIT);
+ }
+ });
+
+ window.display();
+ window.setVisible(true);
+ Thread.sleep(1000);
+ window.setVisible(false);
+ window.destroy();
+ }
+}
diff --git a/maven/tests/test-jogl-atomics/pom.in b/maven/tests/test-jogl-atomics/pom.in
new file mode 100644
index 0000000..f332b01
--- /dev/null
+++ b/maven/tests/test-jogl-atomics/pom.in
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <!-- Auto generated by pom.sh - Do not edit! -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jogamp.maven</groupId>
+ <artifactId>tests</artifactId>
+ <version>JOGAMP_VERSION</version>
+ </parent>
+
+ <artifactId>test-jogl-atomics</artifactId>
+ <packaging>jar</packaging>
+ <description>Test suite for Maven packages</description>
+ <url>http://jogamp.org/</url>
+
+ <repositories>
+ <repository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <id>tests</id>
+ <url>REPOSITORY_URL</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.11</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jogamp.gluegen</groupId>
+ <artifactId>gluegen-rt-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.jogl</groupId>
+ <artifactId>jogl-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.jogl</groupId>
+ <artifactId>jogl</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <classifier>gldesktop</classifier>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.jogl</groupId>
+ <artifactId>nativewindow-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.jogl</groupId>
+ <artifactId>newt-main</artifactId>
+ <version>JOGAMP_VERSION</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Require JDK >= 1.6 -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.17</version>
+ <!--
+ <configuration>
+ <systemPropertyVariables>
+ <jogl.debug.GLContext>true</jogl.debug.GLContext>
+ <jogl.debug.GLProfile>true</jogl.debug.GLProfile>
+ </systemPropertyVariables>
+ </configuration>
+ -->
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/maven/tests/test-jogl-atomics/src/test/java/org/jogamp/maven/tests/TestNEWT.java b/maven/tests/test-jogl-atomics/src/test/java/org/jogamp/maven/tests/TestNEWT.java
new file mode 100644
index 0000000..2be6c9e
--- /dev/null
+++ b/maven/tests/test-jogl-atomics/src/test/java/org/jogamp/maven/tests/TestNEWT.java
@@ -0,0 +1,95 @@
+/*
+ * Copyright 2010 JogAmp Community. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ * NO EVENT SHALL JogAmp Community OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * The views and conclusions contained in the software and documentation are
+ * those of the authors and should not be interpreted as representing official
+ * policies, either expressed or implied, of JogAmp Community.
+ */
+
+package org.jogamp.maven.tests;
+
+import javax.media.opengl.GL;
+import javax.media.opengl.GLAutoDrawable;
+import javax.media.opengl.GLCapabilities;
+import javax.media.opengl.GLEventListener;
+import javax.media.opengl.GLProfile;
+
+import org.junit.Test;
+
+import com.jogamp.newt.opengl.GLWindow;
+
+/**
+ * {@link com.jogamp.newt.opengl.GLWindow}
+ */
+
+@SuppressWarnings("static-method") public final class TestNEWT
+{
+ @Test public void testOpen()
+ throws InterruptedException
+ {
+ final GLProfile pro = GLProfile.getDefault();
+ final GLCapabilities caps = new GLCapabilities(pro);
+ final GLWindow window = GLWindow.create(caps);
+
+ window.setSize(640, 480);
+ window.addGLEventListener(new GLEventListener() {
+ @Override public void reshape(
+ final GLAutoDrawable drawable,
+ final int w,
+ final int h,
+ final int x,
+ final int y)
+ {
+ // Nothing
+ }
+
+ @Override public void init(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void dispose(
+ final GLAutoDrawable drawable)
+ {
+ // Nothing
+ }
+
+ @Override public void display(
+ final GLAutoDrawable drawable)
+ {
+ final GL gl = drawable.getGL();
+ gl.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
+ gl.glClear(GL.GL_COLOR_BUFFER_BIT);
+ }
+ });
+
+ window.display();
+ window.setVisible(true);
+ Thread.sleep(1000);
+ window.setVisible(false);
+ window.destroy();
+ }
+}