diff options
author | Philipp Haller <hallerp@gmail.com> | 2011-12-13 09:14:39 +0100 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2011-12-13 09:14:39 +0100 |
commit | d9981460533949182691e2d83079af364d2dfcde (patch) | |
tree | ccd9d8cde06ad1291bdfdd5b39b3d3f9d212dd61 /test/files | |
parent | 5fcd1e067767b56ae323b0a37b169bf4e0a937b6 (diff) | |
download | scala-d9981460533949182691e2d83079af364d2dfcde.tar.gz scala-d9981460533949182691e2d83079af364d2dfcde.tar.bz2 scala-d9981460533949182691e2d83079af364d2dfcde.zip |
Add stubs for future combinator tests.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/scala-concurrent-tck.scala | 68 |
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() + } |