summaryrefslogtreecommitdiffstats
path: root/maven/trivial/src
diff options
context:
space:
mode:
authorMark Raynsford <[email protected]>2012-11-15 22:26:26 +0000
committerMark Raynsford <[email protected]>2012-11-15 22:26:26 +0000
commitee95868c7c0a142c2aaf4f49d711b37c00711aa9 (patch)
tree3b1a6511b054ce9486520a8f30fc79f642d670ba /maven/trivial/src
parent553c7a6ab6e876e2942fb34f99d243ee1230d939 (diff)
Add trivial JOAL maven example
Diffstat (limited to 'maven/trivial/src')
-rw-r--r--maven/trivial/src/test/java/com/io7m/example/test_joal/TestJOAL.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/maven/trivial/src/test/java/com/io7m/example/test_joal/TestJOAL.java b/maven/trivial/src/test/java/com/io7m/example/test_joal/TestJOAL.java
new file mode 100644
index 0000000..a3f4efb
--- /dev/null
+++ b/maven/trivial/src/test/java/com/io7m/example/test_joal/TestJOAL.java
@@ -0,0 +1,22 @@
+package com.io7m.example.test_joal;
+
+import org.junit.Test;
+
+import com.jogamp.openal.AL;
+import com.jogamp.openal.ALException;
+import com.jogamp.openal.ALFactory;
+
+public class TestJOAL
+{
+ @SuppressWarnings("static-method") @Test public void go()
+ {
+ try {
+ final AL al = ALFactory.getAL();
+ al.alGetError();
+ System.err.println("AL: " + al);
+ } catch (final ALException e) {
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+}