local.test
Class Tracer

java.lang.Object
  extended by local.test.Tracer

public class Tracer
extends java.lang.Object


Constructor Summary
Tracer()
           
 
Method Summary
 boolean await(java.util.List<java.lang.String> value, long time, java.util.concurrent.TimeUnit unit)
          waits at most time/unit long for a change that reaches each expected value.
 boolean await(java.lang.String value, long time, java.util.concurrent.TimeUnit unit)
          waits at most time/unit long for a change that reaches each expected value
 boolean awaitStep(java.lang.String value, long time, java.util.concurrent.TimeUnit unit)
          waits at most time/unit long for a change that reaches the expected value removes the reached steps
 java.lang.Iterable<java.lang.String> getTrace()
           
 boolean isDone()
          checks that no steps are left
 boolean isDone(long time, java.util.concurrent.TimeUnit unit)
          checks that no steps are left
 void step(java.lang.String step)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tracer

public Tracer()
Method Detail

step

public void step(java.lang.String step)

getTrace

public java.lang.Iterable<java.lang.String> getTrace()

isDone

public boolean isDone(long time,
                      java.util.concurrent.TimeUnit unit)
checks that no steps are left

Parameters:
time -
unit -
Returns:

isDone

public boolean isDone()
checks that no steps are left

Returns:

awaitStep

public boolean awaitStep(java.lang.String value,
                         long time,
                         java.util.concurrent.TimeUnit unit)
waits at most time/unit long for a change that reaches the expected value removes the reached steps

Parameters:
value -
time -
unit -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

await

public boolean await(java.util.List<java.lang.String> value,
                     long time,
                     java.util.concurrent.TimeUnit unit)
waits at most time/unit long for a change that reaches each expected value. Removes the steps found

Parameters:
value -
time -
unit -
Returns:

await

public boolean await(java.lang.String value,
                     long time,
                     java.util.concurrent.TimeUnit unit)
waits at most time/unit long for a change that reaches each expected value

Parameters:
value - comma (,) separated steps
time -
unit -
Returns:


Copyright © 2011. All Rights Reserved.