summaryrefslogtreecommitdiff
path: root/test/files/jvm/scala-concurrent-tck.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2011-12-13 09:14:39 +0100
committerPhilipp Haller <hallerp@gmail.com>2011-12-13 09:14:39 +0100
commitd9981460533949182691e2d83079af364d2dfcde (patch)
treeccd9d8cde06ad1291bdfdd5b39b3d3f9d212dd61 /test/files/jvm/scala-concurrent-tck.scala
parent5fcd1e067767b56ae323b0a37b169bf4e0a937b6 (diff)
downloadscala-d9981460533949182691e2d83079af364d2dfcde.tar.gz
scala-d9981460533949182691e2d83079af364d2dfcde.tar.bz2
scala-d9981460533949182691e2d83079af364d2dfcde.zip
Add stubs for future combinator tests.
Diffstat (limited to 'test/files/jvm/scala-concurrent-tck.scala')
-rw-r--r--test/files/jvm/scala-concurrent-tck.scala68
1 files changed, 67 insertions, 1 deletions
diff --git a/test/files/jvm/scala-concurrent-tck.scala b/test/files/jvm/scala-concurrent-tck.scala
index 705675ae43..6e291c396b 100644
--- a/test/files/jvm/scala-concurrent-tck.scala
+++ b/test/files/jvm/scala-concurrent-tck.scala
@@ -134,7 +134,73 @@ trait FutureCallbacks extends TestBase {
trait FutureCombinators extends TestBase {
-
+
+ // map: stub
+ def testMapSuccess(): Unit = once {
+ done =>
+ done()
+ }
+
+ def testMapFailure(): Unit = once {
+ done =>
+ done()
+ }
+
+ // flatMap: stub
+ def testFlatMapSuccess(): Unit = once {
+ done =>
+ done()
+ }
+
+ def testFlatMapFailure(): Unit = once {
+ done =>
+ done()
+ }
+
+ // filter: stub
+ def testFilterSuccess(): Unit = once {
+ done =>
+ done()
+ }
+
+ def testFilterFailure(): Unit = once {
+ done =>
+ done()
+ }
+
+ // foreach: stub
+ def testForeachSuccess(): Unit = once {
+ done =>
+ done()
+ }
+
+ def testForeachFailure(): Unit = once {
+ done =>
+ done()
+ }
+
+ // recover: stub
+ def testRecoverSuccess(): Unit = once {
+ done =>
+ done()
+ }
+
+ def testRecoverFailure(): Unit = once {
+ done =>
+ done()
+ }
+
+ testMapSuccess()
+ testMapFailure()
+ testFlatMapSuccess()
+ testFlatMapFailure()
+ testFilterSuccess()
+ testFilterFailure()
+ testForeachSuccess()
+ testForeachFailure()
+ testRecoverSuccess()
+ testRecoverFailure()
+
}