aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-26 05:50:59 +0100
committerSven Gothel <[email protected]>2014-01-26 05:50:59 +0100
commit2de32d692918c1cf0643daf598afb129c4a204a1 (patch)
tree31c02f94562ec1c1df68133f7e720a491fa58cb5 /test
parenta6f9b46bfb0044ef5adde3ab15a802c545806414 (diff)
Rename TestUtils -> MiscUtils (not a test), remove 'main' .. oops
Diffstat (limited to 'test')
-rw-r--r--test/com/jogamp/opencl/CLBufferTest.java2
-rw-r--r--test/com/jogamp/opencl/CLCommandQueueTest.java2
-rw-r--r--test/com/jogamp/opencl/HighLevelBindingTest.java2
-rw-r--r--test/com/jogamp/opencl/LowLevelBindingTest.java2
-rw-r--r--test/com/jogamp/opencl/test/util/MiscUtils.java (renamed from test/com/jogamp/opencl/TestUtils.java)16
5 files changed, 6 insertions, 18 deletions
diff --git a/test/com/jogamp/opencl/CLBufferTest.java b/test/com/jogamp/opencl/CLBufferTest.java
index 1b9b835..0638844 100644
--- a/test/com/jogamp/opencl/CLBufferTest.java
+++ b/test/com/jogamp/opencl/CLBufferTest.java
@@ -51,8 +51,8 @@ import org.junit.runners.MethodSorters;
import static org.junit.Assert.*;
import static java.lang.System.*;
-import static com.jogamp.opencl.TestUtils.*;
import static com.jogamp.common.nio.Buffers.*;
+import static com.jogamp.opencl.test.util.MiscUtils.*;
import static com.jogamp.opencl.util.CLPlatformFilters.*;
import static com.jogamp.opencl.CLVersion.*;
diff --git a/test/com/jogamp/opencl/CLCommandQueueTest.java b/test/com/jogamp/opencl/CLCommandQueueTest.java
index cc8a6d8..c9b1b56 100644
--- a/test/com/jogamp/opencl/CLCommandQueueTest.java
+++ b/test/com/jogamp/opencl/CLCommandQueueTest.java
@@ -53,7 +53,7 @@ import org.junit.Test;
import static org.junit.Assert.*;
import static java.lang.System.*;
-import static com.jogamp.opencl.TestUtils.*;
+import static com.jogamp.opencl.test.util.MiscUtils.*;
import static com.jogamp.opencl.CLEvent.*;
import static com.jogamp.opencl.CLVersion.*;
import static com.jogamp.common.nio.Buffers.*;
diff --git a/test/com/jogamp/opencl/HighLevelBindingTest.java b/test/com/jogamp/opencl/HighLevelBindingTest.java
index bdff804..6dd6a73 100644
--- a/test/com/jogamp/opencl/HighLevelBindingTest.java
+++ b/test/com/jogamp/opencl/HighLevelBindingTest.java
@@ -56,7 +56,7 @@ import org.junit.runners.MethodSorters;
import static org.junit.Assert.*;
import static java.lang.System.*;
-import static com.jogamp.opencl.TestUtils.*;
+import static com.jogamp.opencl.test.util.MiscUtils.*;
import static com.jogamp.opencl.util.CLPlatformFilters.*;
import static com.jogamp.opencl.CLVersion.*;
import static com.jogamp.opencl.CLDevice.Type.*;
diff --git a/test/com/jogamp/opencl/LowLevelBindingTest.java b/test/com/jogamp/opencl/LowLevelBindingTest.java
index a4135b9..2780c07 100644
--- a/test/com/jogamp/opencl/LowLevelBindingTest.java
+++ b/test/com/jogamp/opencl/LowLevelBindingTest.java
@@ -57,8 +57,8 @@ import static java.lang.System.*;
import static org.junit.Assert.*;
import static com.jogamp.common.nio.Buffers.*;
import static com.jogamp.common.os.Platform.*;
+import static com.jogamp.opencl.test.util.MiscUtils.*;
import static com.jogamp.opencl.util.CLUtil.*;
-import static com.jogamp.opencl.TestUtils.*;
/**
* Test testing the low level bindings.
diff --git a/test/com/jogamp/opencl/TestUtils.java b/test/com/jogamp/opencl/test/util/MiscUtils.java
index a5c4e2b..5d74eb4 100644
--- a/test/com/jogamp/opencl/TestUtils.java
+++ b/test/com/jogamp/opencl/test/util/MiscUtils.java
@@ -26,25 +26,18 @@
* or implied, of JogAmp Community.
*/
-package com.jogamp.opencl;
+package com.jogamp.opencl.test.util;
-import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Random;
-import org.junit.FixMethodOrder;
-import org.junit.runners.MethodSorters;
-
-import com.jogamp.opencl.test.util.UITestCase;
-
import static java.lang.System.*;
import static org.junit.Assert.*;
/**
* @author Michael Bien, et.al
*/
-@FixMethodOrder(MethodSorters.NAME_ASCENDING)
-public class TestUtils extends UITestCase {
+public class MiscUtils {
//decrease this value on systems with few memory.
final static int ONE_MB = 1048576;
@@ -84,9 +77,4 @@ public class TestUtils extends UITestCase {
a.rewind();
b.rewind();
}
-
- public static void main(String[] args) throws IOException {
- String tstname = TestUtils.class.getName();
- org.junit.runner.JUnitCore.main(tstname);
- }
}