public class DigipostClientMock extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DigipostClientMock.ValidatingMarshaller
Threadsafe instance for marshalling and validating.
|
Constructor and Description |
---|
DigipostClientMock(DeliveryMethod deliveryMethod) |
Modifier and Type | Method and Description |
---|---|
void |
addExpectedResponse(ApiServiceMock.Method method,
javax.ws.rs.core.Response response) |
Map<String,ApiServiceMock.MockRequest> |
getAllRequests(ApiServiceMock.Method method) |
DigipostClient |
getClient() |
ApiServiceMock.MockRequest |
getRequest(ApiServiceMock.Method method,
String requestKey) |
static DigipostClientMock.ValidatingMarshaller |
initMarshaller()
Used to validate that requests are according to XSD
|
void |
reset() |
public DigipostClientMock(DeliveryMethod deliveryMethod)
public DigipostClient getClient()
public Map<String,ApiServiceMock.MockRequest> getAllRequests(ApiServiceMock.Method method)
public ApiServiceMock.MockRequest getRequest(ApiServiceMock.Method method, String requestKey)
public void addExpectedResponse(ApiServiceMock.Method method, javax.ws.rs.core.Response response)
public void reset()
public static DigipostClientMock.ValidatingMarshaller initMarshaller()
Copyright © 2015 Digipost Open Source. All rights reserved.