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(ApiFlavor apiFlavor) |
Modifier and Type | Method and Description |
---|---|
void |
addExpectedException(ApiServiceMock.Method method,
RuntimeException exception) |
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(ApiFlavor apiFlavor)
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 addExpectedException(ApiServiceMock.Method method, RuntimeException exception)
public void reset()
public static DigipostClientMock.ValidatingMarshaller initMarshaller()
Copyright © 2016 Digipost Open Source. All rights reserved.