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
- Alphabetic
- By Inheritance
- Tracker
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Tracker(firstOrdinal: Ordinal = new Ordinal(0))
- firstOrdinal
the first
Ordinalin the series ofOrdinals tracked by thisTracker, which will be used to initialize thisTracker's currentOrdinal.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextOrdinal(): Ordinal
Returns the next
Ordinalin the series tracked by thisTracker.Returns the next
Ordinalin the series tracked by thisTracker.This method saves the current
Ordinalin a local variable, reassigns the currentOrdinalwith the value returned by invokingnextOrdinalon the savedOrdinal, then returns the savedOrdinal. As a result, if this method is invoked immediately after construction, this method will return theOrdinalpassed asfirstOrdinal.- returns
the next
Ordinalin the series
- def nextTracker(): Tracker
Returns a
Trackerinitialized with the first element in the tuple returned by invokingnextNewOldPairon the currentOrdinal, and reassigns the currentOrdinalwith the second element that was returned by thenextNewOldPairinvocation.Returns a
Trackerinitialized with the first element in the tuple returned by invokingnextNewOldPairon the currentOrdinal, and reassigns the currentOrdinalwith the second element that was returned by thenextNewOldPairinvocation.The
Ordinalseries of the returnedTrackerwill be placed after all theOrdinals previously returned by invokingnextOrdinalon thisTrackerand before all theOrdinals subsequently returned by invokingnextOrdinalon thisTrackerin the future. This method is intended to be used when executing nested suites in parallel. Each nested suite passed to theDistributorwill get its ownTrackerobtained by invokingnextTrackeron the current thread'sTracker.- returns
the next
Trackerin this series
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()