aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-12-02 18:33:08 +0100
committerSven Gothel <[email protected]>2023-12-02 18:33:08 +0100
commit0cad15cc7538600ec741e685cc8f054d8607a52d (patch)
tree528af0c2c54e86457c9642020856a5ccf668ba1a
parent0666c8f9a353b42ffde4902dc0cdec66f925a6e3 (diff)
TestStructGen*: Enable standalone testing, enforce Platform.initSingleton()
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java2
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen02.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java b/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java
index 4ecc776..9a193c6 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java
+++ b/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java
@@ -1,5 +1,6 @@
package com.jogamp.gluegen.test.junit.structgen;
+import com.jogamp.common.os.Platform;
import com.jogamp.junit.util.SingletonJunitCase;
import org.junit.Assert;
@@ -16,6 +17,7 @@ public class TestStructGen01 extends SingletonJunitCase {
// Enforce dependency,
// i.e. CStruct annotation processor to generate the types 'RenderingConfig' etc.
BuildStruct01.initSingleton();
+ Platform.initSingleton();
}
@Test
diff --git a/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen02.java b/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen02.java
index f3368e0..47b4719 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen02.java
+++ b/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen02.java
@@ -1,5 +1,6 @@
package com.jogamp.gluegen.test.junit.structgen;
+import com.jogamp.common.os.Platform;
import com.jogamp.junit.util.SingletonJunitCase;
import org.junit.Assert;
@@ -16,6 +17,7 @@ public class TestStructGen02 extends SingletonJunitCase {
// Enforce dependency,
// i.e. CStruct annotation processor to generate the types 'RenderingConfig' etc.
BuildStruct01.initSingleton();
+ Platform.initSingleton();
}
@Test