Packages

final class Tracker extends AnyRef

Class that tracks the progress of a series of Ordinals produced by invoking next and nextNewOldPair on the current Ordinal.

Instances of this class are thread safe. Multiple threads can invoke nextOrdinal and nextTracker concurrently. This facilitates multi-threaded tests that send infoProvided reports concurrently. When using a Dispatcher to execute suites in parallel, the intention is that each Tracker will only be used by one thread. For example, if the optional Dispatcher passed to Suite's implementation of runNestedSuites is defined, that method will obtain a new Tracker by invoking nextTracker for each nested suite it passes to the Dispatcher.

Source
Tracker.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tracker
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tracker(firstOrdinal: Ordinal = new Ordinal(0))

    firstOrdinal

    the first Ordinal in the series of Ordinals tracked by this Tracker, which will be used to initialize this Tracker's current Ordinal.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def nextOrdinal(): Ordinal

    Returns the next Ordinal in the series tracked by this Tracker.

    Returns the next Ordinal in the series tracked by this Tracker.

    This method saves the current Ordinal in a local variable, reassigns the current Ordinal with the value returned by invoking nextOrdinal on the saved Ordinal, then returns the saved Ordinal. As a result, if this method is invoked immediately after construction, this method will return the Ordinal passed as firstOrdinal.

    returns

    the next Ordinal in the series

  14. def nextTracker(): Tracker

    Returns a Tracker initialized with the first element in the tuple returned by invoking nextNewOldPair on the current Ordinal, and reassigns the current Ordinal with the second element that was returned by the nextNewOldPair invocation.

    Returns a Tracker initialized with the first element in the tuple returned by invoking nextNewOldPair on the current Ordinal, and reassigns the current Ordinal with the second element that was returned by the nextNewOldPair invocation.

    The Ordinal series of the returned Tracker will be placed after all the Ordinals previously returned by invoking nextOrdinal on this Tracker and before all the Ordinals subsequently returned by invoking nextOrdinal on this Tracker in the future. This method is intended to be used when executing nested suites in parallel. Each nested suite passed to the Distributor will get its own Tracker obtained by invoking nextTracker on the current thread's Tracker.

    returns

    the next Tracker in this series

  15. final def notify(): Unit
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped