public interface VirtualTransactionBuilder<R extends com.ca.codesv.sdk.ResponseBuilder>
Request
.Modifier and Type | Method and Description |
---|---|
VirtualTransactionBuilder<R> |
expectingInvocationCount(int count)
Specifies expected invocation count of
Request . |
VirtualTransactionBuilder<R> |
expectingInvocationCount(org.hamcrest.Matcher<java.lang.Integer> countMatcher)
Specifies expected invocation count of
Request that matches given matcher. |
VirtualTransactionBuilder<R> |
usingRequestParser(com.ca.codesv.sdk.function.Consumer<com.ca.codesv.sdk.Request> requestParser)
Specifies parser of
Request . |
ConnectedServer<R> |
withResponse(com.ca.codesv.sdk.function.Consumer<R> responseConfigurer)
Specifies configurer of
Response which will be returned for matching Request . |
ConnectedServer<R> |
withResponse(com.ca.codesv.sdk.Response response)
Specifies
Response which will be returned for matching Request . |
ConnectedServer<R> |
withSimpleResponse(java.lang.String responseBody)
Specifies
String which be put into Response as body, which be returned for
matching Request . |
VirtualTransactionBuilder<R> usingRequestParser(com.ca.codesv.sdk.function.Consumer<com.ca.codesv.sdk.Request> requestParser)
Request
.requestParser
- a Consumer
of Request
VirtualTransactionBuilder<R> expectingInvocationCount(org.hamcrest.Matcher<java.lang.Integer> countMatcher)
Request
that matches given matcher.countMatcher
- a Matcher
matching Integer
VirtualTransactionBuilder<R> expectingInvocationCount(int count)
Request
.count
- invocation countConnectedServer<R> withSimpleResponse(java.lang.String responseBody)
String
which be put into Response
as body, which be returned for
matching Request
.responseBody
- a text for body of Response
ConnectedServer
ConnectedServer<R> withResponse(com.ca.codesv.sdk.Response response)
Response
which will be returned for matching Request
.response
- a Response
ConnectedServer
ConnectedServer<R> withResponse(com.ca.codesv.sdk.function.Consumer<R> responseConfigurer)
Response
which will be returned for matching Request
.responseConfigurer
- a Consumer
for any classConnectedServer