use of com.google.api.gax.core.FakeApiClock in project gax-java by googleapis.
the class RetryingTest method resetClock.
@Before
public void resetClock() {
fakeClock = new FakeApiClock(System.nanoTime());
executor = RecordingScheduler.create(fakeClock);
clientContext = ClientContext.newBuilder().setExecutor(executor).setClock(fakeClock).setDefaultCallContext(HttpJsonCallContext.createDefault()).build();
}
Aggregations