public interface MockResult
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value) |
void |
finish() |
ActionList |
getActions() |
MockOperation |
getMockOperation() |
MockRequest |
getMockRequest() |
MockResponse |
getMockResponse() |
byte[] |
getRawResponseData() |
String |
getResponseContent() |
StringToStringsMap |
getResponseHeaders() |
long |
getTimestamp() |
long |
getTimeTaken() |
boolean |
isCommitted() |
void |
setContentType(String contentTypeHttpHeader) |
void |
setResponseContent(String responseContent) |
void |
writeRawResponseData(byte[] data) |
MockRequest getMockRequest()
StringToStringsMap getResponseHeaders()
String getResponseContent()
MockResponse getMockResponse()
MockOperation getMockOperation()
ActionList getActions()
long getTimeTaken()
long getTimestamp()
void finish()
byte[] getRawResponseData()
boolean isCommitted()
void setResponseContent(String responseContent)
void setContentType(String contentTypeHttpHeader)
void writeRawResponseData(byte[] data) throws IOException
IOException
Copyright © 2019. All Rights Reserved.