forked from skeeto/sample-java-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleLWJGLTest.java
More file actions
37 lines (33 loc) · 821 Bytes
/
Copy pathSampleLWJGLTest.java
File metadata and controls
37 lines (33 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package sample.java.project;
import junit.framework.TestCase;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
/**
* A sample JUnit test.
*
* This test exists as a placeholder for the test unit framework.
*/
public class SampleLWJGLTest extends TestCase {
/**
* JUnit set up method.
*/
public final void setUp() {
try {
com.nullprogram.lwjgl.Lwjgl.setup();
} catch (java.io.IOException e) {
fail("Failed to load native libraries.");
}
}
/**
* Tests the add() method in the main class.
*/
public final void testDisplay() {
try {
Display.create();
Display.update();
Display.destroy();
} catch (LWJGLException e) {
fail("" + e);
}
}
}