Trait

org.scalatest

ResourcefulReporter

Related Doc: package scalatest

Permalink

trait ResourcefulReporter extends Reporter

Subtrait of Reporter that contains a dispose method for releasing any finite, non-memory resources, such as file handles, held by the Reporter. Runner will invoke dispose on any ResourcefulReporter when it no longer needs the Reporter.

Source
ResourcefulReporter.scala
Linear Supertypes
Reporter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ResourcefulReporter
  2. Reporter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(event: Event): Unit

    Permalink

    Invoked to report an event that subclasses may wish to report in some way to the user.

    Invoked to report an event that subclasses may wish to report in some way to the user.

    event

    the event being reported

    Definition Classes
    Reporter
  2. abstract def dispose(): Unit

    Permalink

    Release any finite, non-memory resources, such as file handles, held by this Reporter.

    Release any finite, non-memory resources, such as file handles, held by this Reporter. Clients should call this method when they no longer need the Reporter, before releasing the last reference to the Reporter. After this method is invoked, the Reporter may be defunct, and therefore not usable anymore. If the Reporter holds no resources, it may do nothing when this method is invoked, however, in that case, it probably won't implement ResourcefulReporter.