public final class Timeout extends Object
public static Timeout timeout(long duration)
Timeout.duration - the duration of the timeout in milliseconds.Timeout.public static Timeout timeout(long duration, TimeUnit timeUnit)
Timeout.duration - the duration of the timeout.timeUnit - the unit of time of the timeout.Timeout.NullPointerException - if the given time unit is null.public long duration()
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.