PlaybackClient Class
- java.
lang. Object - com.
azure. core. test. http. PlaybackClient
- com.
Implements
public final class PlaybackClient
implements HttpClient
HTTP client that plays back NetworkCallRecord.
Constructor Summary
Constructor | Description |
---|---|
PlaybackClient(RecordedData recordedData, Map<String,String> textReplacementRules) |
Creates a Playback |
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<Http |
send(HttpRequest request) |
Methods inherited from java.lang.Object
Constructor Details
PlaybackClient
public PlaybackClient(RecordedData recordedData, Map
Creates a PlaybackClient that replays network calls from recordedData
and replaces getResponse() for any rules specified in textReplacementRules
.
Parameters:
recordedData
- The data to playback.
textReplacementRules
- A set of rules to replace text in network call responses.
Method Details
send
public Mono
Parameters:
request