Searched refs:sleepyTime (Results 1 – 4 of 4) sorted by relevance
26 private final long sleepyTime; field in AnswersWithDelay29 public AnswersWithDelay(final long sleepyTime, final Answer<Object> answer) { in AnswersWithDelay() argument30 this.sleepyTime = sleepyTime; in AnswersWithDelay()36 TimeUnit.MILLISECONDS.sleep(sleepyTime); in answer()
34 final long sleepyTime = 500L; in should_delay() local36 final AnswersWithDelay testSubject = new AnswersWithDelay(sleepyTime, new Returns("value")); in should_delay()43 assertThat(timePassed).isCloseTo(sleepyTime, within(15L)); in should_delay()
332 public static <T> Answer<T> answersWithDelay(long sleepyTime, Answer<T> answer) { in answersWithDelay() argument333 return (Answer<T>) new AnswersWithDelay(sleepyTime, (Answer<Object>) answer); in answersWithDelay()
60 final long sleepyTime = 500L; in can_return_after_delay() local62 … given(iMethods.objectArgMethod(any())).will(answersWithDelay(sleepyTime, returnsFirstArg())); in can_return_after_delay()69 assertThat(timePassed).isCloseTo(sleepyTime, within(15L)); in can_return_after_delay()