aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-07 03:26:10 +0100
committerSven Gothel <[email protected]>2012-03-07 03:26:10 +0100
commit5a68344ea254e70d88c754a011fd06d2bb87aaa7 (patch)
tree281d3358476cfe892cc46ad836e06c4f1487537c /src/junit/com/jogamp/common/util
parent67a89a1d9ff17c4d6815e21502c55bf533b62416 (diff)
android test: Specify 'java.io.tempdir' and add TestJarsInJar.apk / Disable most of tests in TestJarUtil
Diffstat (limited to 'src/junit/com/jogamp/common/util')
-rw-r--r--src/junit/com/jogamp/common/util/TestJarUtil.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/common/util/TestJarUtil.java b/src/junit/com/jogamp/common/util/TestJarUtil.java
index caaac9c..ea6cebf 100644
--- a/src/junit/com/jogamp/common/util/TestJarUtil.java
+++ b/src/junit/com/jogamp/common/util/TestJarUtil.java
@@ -43,6 +43,7 @@ import org.junit.BeforeClass;
import org.junit.Test;
import com.jogamp.common.GlueGenVersion;
+import com.jogamp.common.os.AndroidVersion;
import com.jogamp.common.util.cache.TempCacheReg;
import com.jogamp.common.util.cache.TempFileCache;
import com.jogamp.common.util.cache.TempJarCache;
@@ -53,6 +54,11 @@ public class TestJarUtil extends JunitTracer {
@BeforeClass
public static void init() {
+ if(AndroidVersion.isAvailable) {
+ // ClassLoader -> JarURL doesn't work w/ Dalvik
+ setTestSupported(false);
+ // we allow basic TempFileCache initialization (test) ..
+ }
// may already been initialized by other test
// Assert.assertFalse(TempCacheReg.isTempFileCacheUsed());
Assert.assertTrue(TempFileCache.initSingleton());