public class MockClient extends Object implements feign.Client
| Constructor and Description |
|---|
MockClient() |
| Modifier and Type | Method and Description |
|---|---|
MockClient |
add(HttpMethod method,
String url,
feign.Response.Builder response) |
feign.Response |
execute(feign.Request request,
feign.Request.Options options) |
MockClient |
noContent(HttpMethod method,
String url) |
MockClient |
ok(HttpMethod method,
String url,
byte[] data) |
MockClient |
ok(HttpMethod method,
String url,
InputStream input) |
MockClient |
ok(HttpMethod method,
String url,
String text) |
void |
verifyNever(HttpMethod method,
String url) |
feign.Request |
verifyOne(HttpMethod method,
String url) |
List<feign.Request> |
verifyTimes(HttpMethod method,
String url,
int times) |
public feign.Response execute(feign.Request request,
feign.Request.Options options)
throws IOException
execute in interface feign.ClientIOExceptionpublic MockClient ok(HttpMethod method, String url, InputStream input) throws IOException
IOExceptionpublic MockClient ok(HttpMethod method, String url, String text)
public MockClient noContent(HttpMethod method, String url)
public MockClient ok(HttpMethod method, String url, byte[] data)
public MockClient add(HttpMethod method, String url, feign.Response.Builder response)
public feign.Request verifyOne(HttpMethod method, String url)
public List<feign.Request> verifyTimes(HttpMethod method, String url, int times)
public void verifyNever(HttpMethod method, String url)
Copyright © 2016–2017. All rights reserved.