org.scalatest

trait Stopper

[source: org/scalatest/Stopper.scala]

trait Stopper
extends () => Boolean
Trait whose instances can indicate whether a stop has been requested. This is passed in to the run method of Suite, so that running suites of tests can be requested to stop early.
Author
Bill Venners
Method Summary
override def apply : Boolean
Indicates whether a stop has been requested. Call this method to determine whether a running test should stop. The run method of any Suite, or code invoked by run, should periodically check the stop requested function. If true, the run method should interrupt its work and simply return.
Methods inherited from scala.Function0
scala.Function0.toString
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def apply : Boolean
Indicates whether a stop has been requested. Call this method to determine whether a running test should stop. The run method of any Suite, or code invoked by run, should periodically check the stop requested function. If true, the run method should interrupt its work and simply return.
Overrides
scala.Function0.scala.Function0.apply


Copyright (C) 2001-2010 Artima, Inc. All rights reserved.