diff --git a/akka-actor-tests/src/test/scala/akka/util/NonFatalSpec.scala b/akka-actor-tests/src/test/scala/akka/util/NonFatalSpec.scala deleted file mode 100644 index 4c33c80b68..0000000000 --- a/akka-actor-tests/src/test/scala/akka/util/NonFatalSpec.scala +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Copyright (C) 2009-2012 Typesafe Inc. - */ -/*package akka.util - -import org.scalatest.matchers.MustMatchers -import akka.testkit.AkkaSpec - -@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner]) -class NonFatalSpec extends AkkaSpec with MustMatchers { - - "A NonFatal extractor" must { - - "match ordinary RuntimeException" in { - try { - throw new RuntimeException("Boom") - } catch { - case NonFatal(e) ⇒ // as expected - } - } - - "match StackOverflowError" in { - //not @tailrec - def blowUp(n: Long): Long = { - blowUp(n + 1) + 1 - } - - try { - blowUp(0) - } catch { - case NonFatal(e) ⇒ // as expected - } - } - - "not match InterruptedException" in { - intercept[InterruptedException] { - try { - throw new InterruptedException("Simulated InterruptedException") - } catch { - case NonFatal(e) ⇒ assert(false) - } - } - } - - "be used together with InterruptedException" in { - try { - throw new InterruptedException("Simulated InterruptedException") - } catch { - case _: InterruptedException ⇒ // as expected - case NonFatal(e) ⇒ assert(false) - } - - try { - throw new RuntimeException("Simulated RuntimeException") - } catch { - case NonFatal(_) | _: InterruptedException ⇒ // as expected - } - } - - } - -}*/ \ No newline at end of file