diff options
author | Mark Raynsford <[email protected]> | 2012-11-15 22:26:26 +0000 |
---|---|---|
committer | Mark Raynsford <[email protected]> | 2012-11-15 22:26:26 +0000 |
commit | ee95868c7c0a142c2aaf4f49d711b37c00711aa9 (patch) | |
tree | 3b1a6511b054ce9486520a8f30fc79f642d670ba /maven/trivial/src | |
parent | 553c7a6ab6e876e2942fb34f99d243ee1230d939 (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.java | 22 |
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); + } + } +} |