public class RecordedData extends Object
| Constructor and Description |
|---|
RecordedData()
Creates a new instance of RecordedData to manage network calls and variables in a test session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNetworkCall(NetworkCallRecord record)
Adds a network call to the end of the list.
|
void |
addVariable(String variable)
Adds a variable to the end of the list.
|
NetworkCallRecord |
findFirstAndRemoveNetworkCall(Predicate<NetworkCallRecord> isMatch)
Finds the first matching
NetworkCallRecord based on the predicate, removes it from the current network
calls, and returns it. |
String |
removeVariable()
Removes the first variable from the list and returns it.
|
public RecordedData()
public NetworkCallRecord findFirstAndRemoveNetworkCall(Predicate<NetworkCallRecord> isMatch)
NetworkCallRecord based on the predicate, removes it from the current network
calls, and returns it. null is returned if network call could not be matched.isMatch - Predicate to match for a given network call.NetworkCallRecord that matched isMatch, otherwise null if no network
call could be matched.public void addNetworkCall(NetworkCallRecord record)
record - The record to add.public void addVariable(String variable)
variable - The variable to add to the list.public String removeVariable()
Copyright © 2019 Microsoft Corporation. All rights reserved.