@Test public void cancel_CallsDelegateMethod() throws Exception { testCall.cancel(); verify(wrappedCall).cancel(); }
@Override public void cancel() { delegate.cancel(); }
ScheduledCall implements Call<T> { @Override public void cancel() { delegate.cancel(); } }
ScheduledCall implements Call<T> { @Override public void cancel() { delegate.cancel(); } ScheduledCall(Call<T> delegate, Executor callbackExecutor); }
ScheduledCall implements Call<T> { @Override public void cancel() { delegate.cancel(); } ScheduledCall(Call<T> delegate, Executor callbackExecutor); @Override T execute(); @Override void enqueue(final Callback<T> callback); @Override boolean isExecuted(); @Override void cancel(); @Override boolean isCanceled(); @SuppressWarnings("CloneDoesntCallSuperClone") // Performing deep clone. @Override ScheduledCall<T> clone(); }
ScheduledCall implements Call<T> { @Override public void cancel() { delegate.cancel(); } ScheduledCall(Call<T> delegate, Executor callbackExecutor); @Override T execute(); @Override void enqueue(final Callback<T> callback); @Override boolean isExecuted(); @Override void cancel(); @Override boolean isCanceled(); @SuppressWarnings("CloneDoesntCallSuperClone") // Performing deep clone. @Override ScheduledCall<T> clone();  }