Package | Description |
---|---|
net.jadler.stubbing |
Modifier and Type | Class and Description |
---|---|
class |
Stubbing
Internal class for defining http stubs in a fluid fashion.
|
Modifier and Type | Method and Description |
---|---|
ResponseStubbing |
Stubbing.respond()
Finishes the WHEN part of this stubbing and starts the THEN part.
|
ResponseStubbing |
RequestStubbing.respond()
Finishes the WHEN part of this stubbing and starts the THEN part.
|
ResponseStubbing |
Stubbing.thenRespond()
Starts a definition of a subsequent stub response.
|
ResponseStubbing |
ResponseStubbing.thenRespond()
Starts a definition of a subsequent stub response.
|
ResponseStubbing |
Stubbing.withBody(byte[] responseBody)
Sets the stub http response body as an array of bytes.
|
ResponseStubbing |
ResponseStubbing.withBody(byte[] responseBody)
Sets the stub http response body as an array of bytes.
|
ResponseStubbing |
Stubbing.withBody(InputStream is)
Sets the stub http response body as the content of the given input stream.
|
ResponseStubbing |
ResponseStubbing.withBody(InputStream is)
Sets the stub http response body as the content of the given input stream.
|
ResponseStubbing |
Stubbing.withBody(Reader reader)
Sets the stub http response body as the content of the given reader.
|
ResponseStubbing |
ResponseStubbing.withBody(Reader reader)
Sets the stub http response body as the content of the given reader.
|
ResponseStubbing |
Stubbing.withBody(String responseBody)
Sets the stub http response body as a string.
|
ResponseStubbing |
ResponseStubbing.withBody(String responseBody)
Sets the stub http response body as a string.
|
ResponseStubbing |
Stubbing.withContentType(String contentType)
Sets the content type of the http stub response.
|
ResponseStubbing |
ResponseStubbing.withContentType(String contentType)
Sets the content type of the http stub response.
|
ResponseStubbing |
Stubbing.withDelay(long delayValue,
TimeUnit delayUnit)
Sets the response delay.
|
ResponseStubbing |
ResponseStubbing.withDelay(long delayValue,
TimeUnit delayUnit)
Sets the response delay.
|
ResponseStubbing |
Stubbing.withEncoding(Charset encoding)
Sets the character encoding of the http stub response.
|
ResponseStubbing |
ResponseStubbing.withEncoding(Charset encoding)
Sets the character encoding of the http stub response.
|
ResponseStubbing |
Stubbing.withHeader(String name,
String value)
Adds a stub http response header.
|
ResponseStubbing |
ResponseStubbing.withHeader(String name,
String value)
Adds a stub http response header.
|
ResponseStubbing |
Stubbing.withStatus(int status)
Sets the http stub response status.
|
ResponseStubbing |
ResponseStubbing.withStatus(int status)
Sets the http stub response status.
|
Copyright © 2016. All Rights Reserved.