Adding regression test for DataflowSpec
This commit is contained in:
parent
ac3891c8f2
commit
b8242ed1da
1 changed files with 3 additions and 1 deletions
|
|
@ -271,7 +271,9 @@ class DataflowSpec extends AkkaSpec with DefaultTimeout {
|
|||
assert(checkType(rString, classTag[String]))
|
||||
assert(checkType(rInt, classTag[Int]))
|
||||
assert(!checkType(rInt, classTag[String]))
|
||||
//assert(!checkType(rInt, classTag[Nothing])) This test does not work with classTags, but works with Manifests
|
||||
assert(intercept[java.lang.Exception] {
|
||||
assert(!checkType(rInt, classTag[Nothing]))
|
||||
}.getMessage == "Nothing is a bottom type, therefore its erasure does not return a value") // When this fails, remove the intercept
|
||||
assert(!checkType(rInt, classTag[Any]))
|
||||
|
||||
Await.result(rString, timeout.duration)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue