public interface ConnectedServer<R extends com.ca.codesv.sdk.ResponseBuilder> extends RuntimeServer
Modifier and Type | Method and Description |
---|---|
VerifiedTransactionBuilder<R> |
verifyInvokedRequestMatching(org.hamcrest.Matcher<com.ca.codesv.sdk.Request> matcher)
Allows to verify the observation of a Request at runtime without virtualizing the transaction
or providing a response.
|
VerifiedTransactionBuilder<R> |
verifyInvokedRequestMatching(com.ca.codesv.sdk.function.Predicate<com.ca.codesv.sdk.Request> requestPredicate)
Allows to verify the observation of a Request at runtime without virtualizing the transaction
or providing a response.
|
VirtualTransactionBuilder<R> |
virtualizeAllRequests()
This is a convenience method that is roughly equivalent to using
virtualizeRequestsMatching(Matcher) with a matcher that always returns true. |
VirtualTransactionBuilder<R> |
virtualizeRequestsMatching(org.hamcrest.Matcher<com.ca.codesv.sdk.Request> matcher)
Begins the definition of a virtualized transaction where the request matches according to the
Matcher provided. |
VirtualTransactionBuilder<R> |
virtualizeRequestsMatching(com.ca.codesv.sdk.function.Predicate<com.ca.codesv.sdk.Request> requestPredicate)
Begins the definition of a virtualized transaction where the request matches according to the
Predicate provided. |
resetAll, resetAllTracking, start, stop
getVerifications
VirtualTransactionBuilder<R> virtualizeRequestsMatching(org.hamcrest.Matcher<com.ca.codesv.sdk.Request> matcher)
Matcher
provided. If this method is called multiple times for the same Protocol
and Connection
combination, the virtual
transactions are stored in the order they are defined. During playback, they will also be
evaluated in the order they were defined, with the first matching Request providing the
virtualized response / behavior as defined via this method.matcher
- A Matcher
instance that determines if the virtualized behavior defined
here should be used for a particular incoming Request
during playback.VirtualTransactionBuilder
VirtualTransactionBuilder<R> virtualizeRequestsMatching(com.ca.codesv.sdk.function.Predicate<com.ca.codesv.sdk.Request> requestPredicate)
Predicate
provided. If this method is called multiple times for the same Protocol
and Connection
combination, the virtual
transactions are stored in the order they are defined. During playback, they will also be
evaluated in the order they were defined, with the first matching Request providing the
virtualized response / behavior as defined via this method.requestPredicate
- A Predicate
instance that determines if the virtualized
behavior defined here should be used for a particular incoming Request
during playback.VirtualTransactionBuilder
VirtualTransactionBuilder<R> virtualizeAllRequests()
virtualizeRequestsMatching(Matcher)
with a matcher that always returns true. However, unlike
using virtualizeRequestsMatching(Matcher)
, the virtual transaction defined here will
be automatically placed at the lowest priority. That is, all other virtualized requests will
be checked for a match first, before falling back to the behavior defined via this method.VirtualTransactionBuilder
VerifiedTransactionBuilder<R> verifyInvokedRequestMatching(org.hamcrest.Matcher<com.ca.codesv.sdk.Request> matcher)
matcher
- A Matcher
instance that determines if the Request should be matched for
tracking and verification purposes.VerifiedTransactionBuilder
VerifiedTransactionBuilder<R> verifyInvokedRequestMatching(com.ca.codesv.sdk.function.Predicate<com.ca.codesv.sdk.Request> requestPredicate)
requestPredicate
- A Predicate
instance that determines if the Request should be
matched for tracking and verification purposes.VerifiedTransactionBuilder