org.scalatest

BeforeAndAfter

trait BeforeAndAfter extends BeforeAndAfterEach with BeforeAndAfterAll

This trait has been deprecated and will be removed in a future version of ScalaTest. If you are only using its beforeEach and/or afterEach methods, mix in BeforeAndAfterEach instead. If you are only using its beforeAlland/or afterAll methods, mix in BeforeAndAfterAll instead. If you are using at least one "each" and one "all" method, mix inBeforeAndAfterEach with BeforeAndAfterAll instead.

    deprecated:
    authors:
  1. Bill Venners

Inherited
  1. Hide All
  2. Show all
  1. BeforeAndAfterAll
  2. BeforeAndAfterEach
  3. AbstractSuite
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. def afterAll(configMap: Map[String, Any]): Unit

    Defines a method (that takes a configMap) to be run after all of this suite's tests and nested suites have been run.

  9. def afterAll(): Unit

    Defines a method to be run after all of this suite's tests and nested suites have been run.

  10. def afterEach(configMap: Map[String, Any]): Unit

    Defines a method (that takes a configMap) to be run after each of this suite's tests.

  11. def afterEach(): Unit

    Defines a method to be run after each of this suite's tests.

  12. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  13. def beforeAll(configMap: Map[String, Any]): Unit

    Defines a method (that takes a configMap) to be run before any of this suite's tests or nested suites are run.

  14. def beforeAll(): Unit

    Defines a method to be run before any of this suite's tests or nested suites are run.

  15. def beforeEach(configMap: Map[String, Any]): Unit

    Defines a method (that takes a configMap) to be run before each of this suite's tests.

  16. def beforeEach(): Unit

    Defines a method to be run before each of this suite's tests.

  17. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  18. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  19. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  20. def expectedTestCount(filter: Filter): Int

    The total number of tests that are expected to run when this Suite's run method is invoked.

  21. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  22. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  23. def hashCode(): Int

    Returns a hash code value for the object.

  24. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  25. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  26. def nestedSuites: List[Suite]

    A List of this Suite object's nested Suites.

  27. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  28. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  29. def run(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Execute a suite surrounded by calls to beforeAll and afterAll.

  30. def runNestedSuites(reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Runs zero to many of this suite's nested suites.

  31. def runTest(testName: String, reporter: Reporter, stopper: Stopper, configMap: Map[String, Any], tracker: Tracker): Unit

    Run a test surrounded by calls to beforeEach and afterEach.

  32. def runTests(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Runs zero to many of this suite's tests.

  33. def synchronized[T0](arg0: T0): T0

  34. def tags: Map[String, Set[String]]

    A Map whose keys are String tag names with which tests in this Suite are marked, and whose values are the Set of test names marked with each tag.

  35. def testNames: Set[String]

    An Set of test names.

  36. def toString(): String

    Returns a string representation of the object.

  37. def wait(): Unit

  38. def wait(arg0: Long, arg1: Int): Unit

  39. def wait(arg0: Long): Unit

  40. def withFixture(test: NoArgTest): Unit

    Runs the passed test function with a fixture established by this method.