GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java™ (public API).
com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908 Class Reference

Bug 908: Automated test, launching GlueGen jar file from an odd pathname. More...

Inheritance diagram for com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908:
Collaboration diagram for com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908:

Classes

class  TestClassLoader
 

Public Member Functions

void test00TempJarCacheSimplePath () throws IOException, IllegalArgumentException, URISyntaxException
 
void test01TempJarCacheOddPath () throws IOException, IllegalArgumentException, URISyntaxException
 
void test02TempJarCacheOddPath () throws IOException, IllegalArgumentException, URISyntaxException
 
- Public Member Functions inherited from com.jogamp.junit.util.JunitTracer
final String getTestMethodName ()
 
final String getSimpleTestName (final String separator)
 
final String getFullTestName (final String separator)
 
final void setUpBase ()
 
final void tearDownBase ()
 

Static Public Member Functions

static void main (final String args[]) throws IOException
 
- Static Public Member Functions inherited from com.jogamp.junit.util.SingletonJunitCase
static final void enableSingletonLock (final boolean v)
 Default is true. More...
 
static final void oneTimeSetUpSingleton ()
 
static final void oneTimeTearDownSingleton ()
 
- Static Public Member Functions inherited from com.jogamp.junit.util.JunitTracer
static final boolean isTestSupported ()
 
static final void setTestSupported (final boolean v)
 
static final void oneTimeSetUpBase ()
 
static final void oneTimeTearDownBase ()
 
static void waitForKey (final String preMessage)
 

Additional Inherited Members

- Public Attributes inherited from com.jogamp.junit.util.JunitTracer
final TestName _unitTestName = new TestName()
 
- Static Public Attributes inherited from com.jogamp.junit.util.SingletonJunitCase
static final String SINGLE_INSTANCE_LOCK_FILE = "SingletonTestCase.lock"
 
static final int SINGLE_INSTANCE_LOCK_PORT = 59999
 
static final long SINGLE_INSTANCE_LOCK_TO = 15*60*1000
 
static final long SINGLE_INSTANCE_LOCK_POLL = 500
 

Detailed Description

Bug 908: Automated test, launching GlueGen jar file from an odd pathname.

The currently used jar folder is copied into [1]

   [1] build/test/build/TestNetIOURIReservedCharsBug908/test01TempJarCacheOddPath/A$-B\^-C~-D#-E\]-F\[-öä
   [2] build/test/build/TestNetIOURIReservedCharsBug908/test01TempJarCacheOddPath/A$-B\^-C~-D#-E\]-F\[-öä/gluegen-rt.jar

A ClassLoader w/ the URL [2] is used to issue Platform.initSingleton(), i.e. issues a whole initialization sequence w/ native jar loading in the new ClassPath.

The manual test below on the created odd folder [1] has also succeeded:

java \
    -Djogamp.debug.IOUtil -Djogamp.debug.JNILibLoader -Djogamp.debug.TempFileCache \
    -Djogamp.debug.JarUtil -Djogamp.debug.TempJarCache \
    -cp ../build-x86_64/test/build/TestNetIOURIReservedCharsBug908/test01TempJarCacheOddPath/A$-B\^-C~-D#-E\]-F\[-öä/gluegen-rt.jar \
    com.jogamp.common.GlueGenVersion

Definition at line 73 of file TestUri99LaunchOnReservedCharPathBug908.java.

Member Function Documentation

◆ main()

static void com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908.main ( final String  args[]) throws IOException
static

Definition at line 170 of file TestUri99LaunchOnReservedCharPathBug908.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test00TempJarCacheSimplePath()

void com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908.test00TempJarCacheSimplePath ( ) throws IOException, IllegalArgumentException, URISyntaxException

Definition at line 85 of file TestUri99LaunchOnReservedCharPathBug908.java.

◆ test01TempJarCacheOddPath()

void com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908.test01TempJarCacheOddPath ( ) throws IOException, IllegalArgumentException, URISyntaxException

Definition at line 90 of file TestUri99LaunchOnReservedCharPathBug908.java.

◆ test02TempJarCacheOddPath()

void com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908.test02TempJarCacheOddPath ( ) throws IOException, IllegalArgumentException, URISyntaxException

The documentation for this class was generated from the following file: