final class Tracker extends AnyRef
Class that tracks the progress of a series of Ordinal
s 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
- All
Instance Constructors
-
new
Tracker(firstOrdinal: Ordinal = new Ordinal(0))
- firstOrdinal
the first
Ordinal
in the series ofOrdinal
s 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
Ordinal
in the series tracked by thisTracker
.Returns the next
Ordinal
in the series tracked by thisTracker
.This method saves the current
Ordinal
in a local variable, reassigns the currentOrdinal
with the value returned by invokingnextOrdinal
on the savedOrdinal
, then returns the savedOrdinal
. As a result, if this method is invoked immediately after construction, this method will return theOrdinal
passed asfirstOrdinal
.- returns
the next
Ordinal
in the series
-
def
nextTracker(): Tracker
Returns a
Tracker
initialized with the first element in the tuple returned by invokingnextNewOldPair
on the currentOrdinal
, and reassigns the currentOrdinal
with the second element that was returned by thenextNewOldPair
invocation.Returns a
Tracker
initialized with the first element in the tuple returned by invokingnextNewOldPair
on the currentOrdinal
, and reassigns the currentOrdinal
with the second element that was returned by thenextNewOldPair
invocation.The
Ordinal
series of the returnedTracker
will be placed after all theOrdinal
s previously returned by invokingnextOrdinal
on thisTracker
and before all theOrdinal
s subsequently returned by invokingnextOrdinal
on thisTracker
in the future. This method is intended to be used when executing nested suites in parallel. Each nested suite passed to theDistributor
will get its ownTracker
obtained by invokingnextTracker
on the current thread'sTracker
.- returns
the next
Tracker
in 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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )