diff options
author | Sven Gothel <[email protected]> | 2014-01-25 15:03:04 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-25 15:03:04 +0100 |
commit | f51d6456ab2196bf8ce7d6b3c7ac6d71e9e0108b (patch) | |
tree | 27f793cb02a09b4735b5b379dc9ae18e8df43ee5 /test/com | |
parent | 1bc4f882be2c8129521b1110e52bcda9c232f8f1 (diff) | |
parent | 9ecc606bce374ea093c6321f2d4921b5019a0b18 (diff) |
Merge remote-tracking branch 'wwalker/bug_884_replace_netbeans_build_with_jogamp_standard_build'
Diffstat (limited to 'test/com')
-rw-r--r-- | test/com/jogamp/opencl/CLCommandQueueTest.java | 4 | ||||
-rw-r--r-- | test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/test/com/jogamp/opencl/CLCommandQueueTest.java b/test/com/jogamp/opencl/CLCommandQueueTest.java index 57689818..a83acda2 100644 --- a/test/com/jogamp/opencl/CLCommandQueueTest.java +++ b/test/com/jogamp/opencl/CLCommandQueueTest.java @@ -29,7 +29,6 @@ package com.jogamp.opencl; import org.junit.Rule; -import org.junit.rules.MethodRule; import org.junit.rules.Timeout; import java.util.concurrent.CountDownLatch; import com.jogamp.opencl.util.MultiQueueBarrier; @@ -59,9 +58,8 @@ import static com.jogamp.opencl.CLCommandQueue.Mode.*; */ public class CLCommandQueueTest { - @SuppressWarnings("deprecation") @Rule - public MethodRule methodTimeout= (MethodRule) new Timeout(20000); + public Timeout methodTimeout = new Timeout(20000); @Test public void enumsTest() { diff --git a/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java b/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java index 81d34907..818827c6 100644 --- a/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java +++ b/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java @@ -16,7 +16,6 @@ import java.nio.IntBuffer; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import org.junit.Rule; -import org.junit.rules.MethodRule; import org.junit.rules.Timeout; import com.jogamp.opencl.util.CLMultiContext; import java.nio.Buffer; @@ -34,7 +33,7 @@ import static java.lang.System.*; public class CLMultiContextTest { @Rule - public MethodRule methodTimeout= new Timeout(10000); + public Timeout methodTimeout= new Timeout(10000); @Test public void createMultiContextTest() { |