SatisfiedCondition one = new SatisfiedCondition(timeToWaitTillSatisfied);
SatisfiedCondition two = new SatisfiedCondition(timeToWaitTillSatisfied);
StopWatch watch = startNewStopWatch();
Pause.pause(new Condition[] { one, two });
watch.stop();
assertThat(watch.ellapsedTime() >= timeToWaitTillSatisfied).isTrue();
assertThat(one.satisfied).isTrue();
assertThat(two.satisfied).isTrue();
}
@Test(expected = WaitTimedOutError.class)