@Test public void thenWait_GivenMilliseconds_ShouldSleepForConfiguredTime() throws InterruptedException { long startTime = System.currentTimeMillis(); long waitFor = 100L; setup.thenWait(waitFor); Assert.assertThat(System.currentTimeMillis() - startTime, Matchers.greaterThanOrEqualTo(waitFor)); }
public InputSetup<TRecord, TResponse> thenWait(Long millis) throws InterruptedException { Thread.sleep(millis); return this; }
InputSetup { public InputSetup<TRecord, TResponse> thenWait(Long millis) throws InterruptedException { Thread.sleep(millis); return this; } }
InputSetup { public InputSetup<TRecord, TResponse> thenWait(Long millis) throws InterruptedException { Thread.sleep(millis); return this; } InputSetup(Writer<TRecord, TResponse> writer); }
InputSetup { public InputSetup<TRecord, TResponse> thenWait(Long millis) throws InterruptedException { Thread.sleep(millis); return this; } InputSetup(Writer<TRecord, TResponse> writer); InputSetup<TRecord, TResponse> thenWait(Long millis); InputSetup<TRecord, TResponse> withResponseHandler(Consumer<TResponse> responseHandler); InputSetup<TRecord, TResponse> given(List<TRecord> records); }
InputSetup { public InputSetup<TRecord, TResponse> thenWait(Long millis) throws InterruptedException { Thread.sleep(millis); return this; } InputSetup(Writer<TRecord, TResponse> writer); InputSetup<TRecord, TResponse> thenWait(Long millis); InputSetup<TRecord, TResponse> withResponseHandler(Consumer<TResponse> responseHandler); InputSetup<TRecord, TResponse> given(List<TRecord> records);  }