|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.clients.delegates.MockDelegate<S>
S - the type of service endpoint stubs used by Callspublic class MockDelegate<S>
A ProxyDelegate for mock testing.
| Method Summary | ||
|---|---|---|
ProxyConfig<?,S> |
config()
Returns the configuration of the proxy. |
|
|
make(Call<S,V> call)
Makes a Call to a given service endpoint. |
|
static
|
mockDelegate(ProxyPlugin<?,S,?> plugin,
S endpoint)
Creates an instance with a ProxyPlugin and a mock endpoints. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <S> ProxyDelegate<S> mockDelegate(ProxyPlugin<?,S,?> plugin,
S endpoint)
ProxyPlugin and a mock endpoints.
plugin - the pluginendpoint - the endpoint
public <V> V make(Call<S,V> call)
throws Exception
ProxyDelegateCall to a given service endpoint.
make in interface ProxyDelegate<S>V - the type of the value returned from the callcall - the call
Exception - if the call failspublic ProxyConfig<?,S> config()
ProxyDelegate
config in interface ProxyDelegate<S>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||