29package com.jogamp.gluegen.test.junit.generation;
31import java.io.IOException;
33import com.jogamp.gluegen.test.junit.generation.impl.Bindingtest1p1Impl;
34import com.jogamp.gluegen.test.junit.generation.impl.Bindingtest1p2Impl;
35import com.jogamp.common.os.NativeLibrary;
37import org.junit.AfterClass;
38import org.junit.Assert;
39import org.junit.BeforeClass;
46import org.junit.FixMethodOrder;
47import org.junit.runners.MethodSorters;
49@FixMethodOrder(MethodSorters.NAME_ASCENDING)
61 Assert.assertNotNull(
"NativeLibrary.open(test1) failed", dynamicLookupHelper);
62 System.err.println(
"Loaded: "+dynamicLookupHelper);
64 Bindingtest1p2Impl.resetProcAddressTable(dynamicLookupHelper);
72 testClassExist(
"test1p2");
80 chapter__TestCoverageSignature(
new Bindingtest1p2Impl());
92 chapter01TestStaticConstants(
new Bindingtest1p2Impl());
103 chapter03TestCoverageFunctionalityNIOAndPrimitiveArray(
new Bindingtest1p2Impl(),
true);
114 chapter03TestCoverageFunctionalityNIOAndPrimitiveArray(
new Bindingtest1p2Impl(),
false);
122 this.chapter04TestPointerBuffer(
new Bindingtest1p2Impl());
130 chapter05TestSomeFunctionsAllIndirect(
new Bindingtest1p2Impl());
138 chapter09TestCompoundAlignment(
new Bindingtest1p2Impl());
146 chapter10TestCompoundCallByReference(
new Bindingtest1p2Impl());
154 chapter11TestCompoundCallByValue(
new Bindingtest1p2Impl());
162 chapter12TestTKField(
new Bindingtest1p2Impl());
170 chapter13TestTKFieldImmutable(
new Bindingtest1p2Impl());
175 chapter14TestTKMixed(
new Bindingtest1p2Impl());
183 chapter15TestCustomJNICode(
new Bindingtest1p2Impl());
191 Assert.assertNotNull(dynamicLookupHelper);
192 dynamicLookupHelper.
close();
193 dynamicLookupHelper =
null;
196 public static void main(
final String args[])
throws IOException {
198 org.junit.runner.JUnitCore.
main(tstname);
Provides low-level, relatively platform-independent access to shared ("native") libraries.
final void close()
Closes this native library.
static final NativeLibrary open(final String libName, final boolean searchOSSystemPath, final boolean searchSystemPathFirst, final ClassLoader loader, final boolean global)
Opens the given native library, assuming it has the same base name on all platforms.
static void loadBindingtest1p2()
static void chapter__TestLoadLibrary()
Verifies loading of the new library.
void chapter__TestCoverageSignature()
Verifies if all generated method signatures are completed, ie a compilation only coverage test withou...
void chapter10TestCompoundCallByReference()
This covers compounds (structs) call-by-reference.
void chapter12TestTKField()
Test compound access read-write.
void chapter09TestCompoundAlignment()
This covers compounds (structs) data alignment.
void chapter05TestSomeFunctionsAllIndirect()
This covers indirect primitive arrays and indirect NIO buffers.
void chapter04TestPointerBuffer()
This covers direct / indirect pointer buffers.
void chapter00TestClassExist()
Verifies the existence and creation of the generated class.
static void chapter0XTestUnloadLibrary()
Verifies unloading of the new library.
void chapter13TestTKFieldImmutable()
Test compound access read-only.
void chapter01TestStaticConstants()
Verifies if all generated static constant values are completed, and whether their value is as expecte...
void chapter15TestTKMixed()
void chapter14TestCustomJNICode()
Test Custom JNI Code invocation.
void chapter11TestCompoundCallByValue()
This covers compounds (structs) call-by-value.
void chapter03bTestCoverageFunctionalityIndirectNIOAndPrimitiveArray()
Verifies if all methods / signatures are properly generated, can be invoked and functions.
void chapter03aTestCoverageFunctionalityDirectNIOAndPrimitiveArray()
Verifies if all methods / signatures are properly generated, can be invoked and functions.
static void main(final String args[])