Skip navigation links
B C D E F M N R S V 

B

backgroundExecutor() - Method in class retrofit2.mock.MockRetrofit
 
backgroundExecutor(ExecutorService) - Method in class retrofit2.mock.MockRetrofit.Builder
 
BehaviorDelegate<T> - Class in retrofit2.mock
Applies behavior to responses and adapts them into the appropriate return type using the call adapters of Retrofit.
build() - Method in class retrofit2.mock.MockRetrofit.Builder
 
Builder(Retrofit) - Constructor for class retrofit2.mock.MockRetrofit.Builder
 

C

calculateDelay(TimeUnit) - Method in class retrofit2.mock.NetworkBehavior
Get the delay that should be used for delaying a response in accordance with configured behavior.
calculateIsError() - Method in class retrofit2.mock.NetworkBehavior
Randomly determine whether this call should result in an HTTP error in accordance with configured behavior.
calculateIsFailure() - Method in class retrofit2.mock.NetworkBehavior
Randomly determine whether this call should result in a network failure in accordance with configured behavior.
Calls - Class in retrofit2.mock
Factory methods for creating Call instances which immediately respond or fail.
create(Class<T>) - Method in class retrofit2.mock.MockRetrofit
 
create() - Static method in class retrofit2.mock.NetworkBehavior
Create an instance with default behavior.
create(Random) - Static method in class retrofit2.mock.NetworkBehavior
Create an instance with default behavior which uses random to control variance and failure calculation.
createErrorResponse() - Method in class retrofit2.mock.NetworkBehavior
The HTTP error to be used when an error is triggered.

D

defer(Callable<Call<T>>) - Static method in class retrofit2.mock.Calls
Invokes callable once for the returned Call and once for each instance that is obtained from cloning the returned Call.
delay(TimeUnit) - Method in class retrofit2.mock.NetworkBehavior
The network round trip delay.

E

errorPercent() - Method in class retrofit2.mock.NetworkBehavior
The percentage of calls to NetworkBehavior.calculateIsError() that return true.

F

failure(IOException) - Static method in class retrofit2.mock.Calls
Creates a failed Call from failure.
failure(Throwable) - Static method in class retrofit2.mock.Calls
Creates a failed Call from failure.
failureException() - Method in class retrofit2.mock.NetworkBehavior
The exception to be used when a failure is triggered.
failurePercent() - Method in class retrofit2.mock.NetworkBehavior
The percentage of calls to NetworkBehavior.calculateIsFailure() that return true.

M

MockRetrofit - Class in retrofit2.mock
 
MockRetrofit.Builder - Class in retrofit2.mock
 

N

networkBehavior(NetworkBehavior) - Method in class retrofit2.mock.MockRetrofit.Builder
 
networkBehavior() - Method in class retrofit2.mock.MockRetrofit
 
NetworkBehavior - Class in retrofit2.mock
A simple emulation of the behavior of network calls.

R

response(T) - Static method in class retrofit2.mock.Calls
 
response(Response<T>) - Static method in class retrofit2.mock.Calls
 
retrofit() - Method in class retrofit2.mock.MockRetrofit
 
retrofit2.mock - package retrofit2.mock
 
returning(Call<R>) - Method in class retrofit2.mock.BehaviorDelegate
 
returningResponse(Object) - Method in class retrofit2.mock.BehaviorDelegate
 

S

setDelay(long, TimeUnit) - Method in class retrofit2.mock.NetworkBehavior
Set the network round trip delay.
setErrorFactory(Callable<Response<?>>) - Method in class retrofit2.mock.NetworkBehavior
Set the error response factory to be used when an error is triggered.
setErrorPercent(int) - Method in class retrofit2.mock.NetworkBehavior
Set the percentage of calls to NetworkBehavior.calculateIsError() that return true.
setFailureException(Throwable) - Method in class retrofit2.mock.NetworkBehavior
Set the exception to be used when a failure is triggered.
setFailurePercent(int) - Method in class retrofit2.mock.NetworkBehavior
Set the percentage of calls to NetworkBehavior.calculateIsFailure() that return true.
setVariancePercent(int) - Method in class retrofit2.mock.NetworkBehavior
Set the plus-or-minus variance percentage of the network round trip delay.

V

variancePercent() - Method in class retrofit2.mock.NetworkBehavior
The plus-or-minus variance percentage of the network round trip delay.
B C D E F M N R S V 
Skip navigation links

Copyright © 2020 Square, Inc.. All rights reserved.