| Modifier and Type | Method and Description |
|---|---|
static NetworkBehavior |
NetworkBehavior.create()
Create an instance with default behavior.
|
static NetworkBehavior |
NetworkBehavior.create(Random random)
Create an instance with default behavior which uses
random to control variance and
failure calculation. |
| Modifier and Type | Method and Description |
|---|---|
Call<?> |
CallBehaviorAdapter.applyBehavior(NetworkBehavior behavior,
Call<?> value) |
T |
NetworkBehavior.Adapter.applyBehavior(NetworkBehavior behavior,
T value)
Apply
behavior to value so that it exhibits the configured network behavior
traits when interacted with. |
| Constructor and Description |
|---|
MockRetrofit(NetworkBehavior behavior,
NetworkBehavior.Adapter<?> adapter) |
Copyright © 2015 Square, Inc.. All Rights Reserved.