Non-blocking call that returns true
if setCompleted
has been invoked on this instance, false
otherwise.
Non-blocking call that returns true
if setCompleted
has been invoked on this instance, false
otherwise.
true
if the test or suite run is already completed, false
otherwise.
Sets the status to completed.
Sets the status to completed.
This method may be invoked repeatedly, even though invoking it once is sufficient to set the state of the Status
to completed.
Sets the status to failed without changing the completion status.
Sets the status to failed without changing the completion status.
This method may be invoked repeatedly, even though invoking it once is sufficient to set the state of the Status
to failed, but only
up until setCompleted
has been called. Once setCompleted
has been called, invoking this method will result in a
thrown IllegalStateException
.
if this method is invoked on this instance after setCompleted
has been invoked on this instance.
Blocking call that waits until completion, as indicated by an invocation of setCompleted
on this instance, then returns returns false
if setFailed
was called on this instance, else returns true
.
Blocking call that waits until completion, as indicated by an invocation of setCompleted
on this instance, then returns returns false
if setFailed
was called on this instance, else returns true
.
true
if no tests failed and no suites aborted, false
otherwise
Blocking call that returns only after setCompleted
has been invoked on this StatefulStatus
instance.
Blocking call that returns only after setCompleted
has been invoked on this StatefulStatus
instance.
Registers the passed function to be executed when this status completes.
Registers the passed function to be executed when this status completes.
You may register multiple functions, which on completion will be executed in an undefined order.
Status implementation that can change its state over time.
A
StatefulStatus
begins its life in a successful state, and will remain successful unlesssetFailed
is called. OncesetFailed
is called, the status will remain at failed. ThesetFailed
method can be called multiple times (even though invoking it once is sufficient to permanently set the status to failed), but only up untilsetCompleted
has been called. AftersetCompleted
has been called, any invocation ofsetFailed
will be greeted with anIllegalStateException
.Instances of this class are thread safe.