public static class DigipostApiMock.RequestsAndResponses extends Object
Modifier and Type | Method and Description |
---|---|
void |
addExpectedException(RuntimeException ex) |
void |
addExpectedResponse(org.apache.http.client.methods.CloseableHttpResponse response) |
void |
addRequest(DigipostApiMock.MockRequest request) |
DigipostApiMock.MockRequest |
getRequest(String requestKey) |
Map<String,DigipostApiMock.MockRequest> |
getRequests() |
org.apache.http.client.methods.CloseableHttpResponse |
getResponse() |
org.apache.http.client.methods.CloseableHttpResponse |
getResponse(String requestString) |
public void addExpectedResponse(org.apache.http.client.methods.CloseableHttpResponse response)
public void addExpectedException(RuntimeException ex)
public org.apache.http.client.methods.CloseableHttpResponse getResponse()
public org.apache.http.client.methods.CloseableHttpResponse getResponse(String requestString)
public void addRequest(DigipostApiMock.MockRequest request)
public DigipostApiMock.MockRequest getRequest(String requestKey)
public Map<String,DigipostApiMock.MockRequest> getRequests()
Copyright © 2016 Digipost Open Source. All rights reserved.