diff options
author | Viktor Klang <viktor.klang@gmail.com> | 2013-02-21 15:31:48 +0100 |
---|---|---|
committer | Viktor Klang <viktor.klang@gmail.com> | 2013-02-21 17:04:57 +0100 |
commit | 68f62d7e9c200034bd42ffaf795b57fb379d9d38 (patch) | |
tree | 04c59267a2e4523e33cd7aa25e036b5f09bcd739 /test/files | |
parent | 70956e560a11996e1d801d59b312dfe9d56b7a74 (diff) | |
download | scala-68f62d7e9c200034bd42ffaf795b57fb379d9d38.tar.gz scala-68f62d7e9c200034bd42ffaf795b57fb379d9d38.tar.bz2 scala-68f62d7e9c200034bd42ffaf795b57fb379d9d38.zip |
SI-7164 - Removing NotImplementedError as Fatal from s.u.c.NonFatal
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/future-spec/FutureTests.scala | 2 | ||||
-rw-r--r-- | test/files/jvm/non-fatal-tests.scala | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/files/jvm/future-spec/FutureTests.scala b/test/files/jvm/future-spec/FutureTests.scala index 0efa83fbd9..01c9cf82ba 100644 --- a/test/files/jvm/future-spec/FutureTests.scala +++ b/test/files/jvm/future-spec/FutureTests.scala @@ -77,7 +77,7 @@ object FutureTests extends MinimalScalaTest { val logThrowable: Throwable => Unit = p.trySuccess(_) val ec: ExecutionContext = ExecutionContext.fromExecutor(null, logThrowable) - val t = new NotImplementedError("foo") + val t = new InterruptedException() val f = Future(throw t)(ec) Await.result(p.future, 2.seconds) mustBe t } diff --git a/test/files/jvm/non-fatal-tests.scala b/test/files/jvm/non-fatal-tests.scala index 471a9d227a..22c7cba51f 100644 --- a/test/files/jvm/non-fatal-tests.scala +++ b/test/files/jvm/non-fatal-tests.scala @@ -7,7 +7,8 @@ trait NonFatalTests { Seq(new StackOverflowError, new RuntimeException, new Exception, - new Throwable) + new Throwable, + new NotImplementedError) //Fatals val fatals: Seq[Throwable] = @@ -15,8 +16,7 @@ trait NonFatalTests { new OutOfMemoryError, new LinkageError, new VirtualMachineError {}, - new Throwable with scala.util.control.ControlThrowable, - new NotImplementedError) + new Throwable with scala.util.control.ControlThrowable) def testFatalsUsingApply(): Unit = { fatals foreach { t => assert(NonFatal(t) == false) } |