From ee95868c7c0a142c2aaf4f49d711b37c00711aa9 Mon Sep 17 00:00:00 2001 From: Mark Raynsford Date: Thu, 15 Nov 2012 22:26:26 +0000 Subject: Add trivial JOAL maven example --- .../java/com/io7m/example/test_joal/TestJOAL.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 maven/trivial/src/test/java/com/io7m/example/test_joal/TestJOAL.java (limited to 'maven/trivial/src') 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); + } + } +} -- cgit v1.2.3