summaryrefslogtreecommitdiffstats
path: root/jsr166-tests/src/test/java/jsr166/LinkedBlockingDequeBoundedTest.java
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-05-15 19:29:37 +0100
committerCalin Juravle <calin@google.com>2014-05-16 10:47:03 +0100
commit008167dfe7530e6a80066006633f2301d3eae012 (patch)
treecce2b94d7900b0c5f8a91832363109aaf9d06315 /jsr166-tests/src/test/java/jsr166/LinkedBlockingDequeBoundedTest.java
parent6b3592a745f9ab6339421d0eaa2f665ce207376d (diff)
downloadlibcore-008167dfe7530e6a80066006633f2301d3eae012.zip
libcore-008167dfe7530e6a80066006633f2301d3eae012.tar.gz
libcore-008167dfe7530e6a80066006633f2301d3eae012.tar.bz2
Fix jsr166 tests
Tests specified as static inner classes were failing because the CTS runner does not support them. The temporary fix is to promote all static inner test classes to top level classes. This should be reverted once the CTS runner is fixed. Bug: 13877168 Change-Id: Icb64d7d7fcf6202d54d6fe31d9e1c9a6a43a233b
Diffstat (limited to 'jsr166-tests/src/test/java/jsr166/LinkedBlockingDequeBoundedTest.java')
-rw-r--r--jsr166-tests/src/test/java/jsr166/LinkedBlockingDequeBoundedTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/jsr166-tests/src/test/java/jsr166/LinkedBlockingDequeBoundedTest.java b/jsr166-tests/src/test/java/jsr166/LinkedBlockingDequeBoundedTest.java
new file mode 100644
index 0000000..7b43583
--- /dev/null
+++ b/jsr166-tests/src/test/java/jsr166/LinkedBlockingDequeBoundedTest.java
@@ -0,0 +1,18 @@
+/*
+ * Written by Doug Lea with assistance from members of JCP JSR-166
+ * Expert Group and released to the public domain, as explained at
+ * http://creativecommons.org/publicdomain/zero/1.0/
+ */
+
+package jsr166;
+
+import java.util.concurrent.BlockingQueue;
+import java.util.concurrent.LinkedBlockingDeque;
+
+public class LinkedBlockingDequeBoundedTest extends JSR166TestCase {
+
+ protected BlockingQueue emptyCollection() {
+ return new LinkedBlockingDeque(SIZE);
+ }
+
+}