azure-docs-sdk-java/docs-ref-autogen/com.azure.core.test.models....

84 строки
6.2 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.test.models.RecordedData"
fullName: "com.azure.core.test.models.RecordedData"
name: "RecordedData"
nameWithType: "RecordedData"
summary: "Keeps track of the network calls and variable names that were made in a test session."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public class **RecordedData**"
constructors:
- uid: "com.azure.core.test.models.RecordedData.RecordedData()"
fullName: "com.azure.core.test.models.RecordedData.RecordedData()"
name: "RecordedData()"
nameWithType: "RecordedData.RecordedData()"
summary: "Creates a new instance of Recorded<wbr>Data to manage network calls and variables in a test session."
syntax: "public RecordedData()"
desc: "Creates a new instance of RecordedData to manage network calls and variables in a test session."
methods:
- uid: "com.azure.core.test.models.RecordedData.addNetworkCall(com.azure.core.test.models.NetworkCallRecord)"
fullName: "com.azure.core.test.models.RecordedData.addNetworkCall(NetworkCallRecord record)"
name: "addNetworkCall(NetworkCallRecord record)"
nameWithType: "RecordedData.addNetworkCall(NetworkCallRecord record)"
summary: "Adds a network call to the end of the list."
parameters:
- description: "The record to add."
name: "record"
type: "<xref href=\"com.azure.core.test.models.NetworkCallRecord?alt=com.azure.core.test.models.NetworkCallRecord&text=NetworkCallRecord\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void addNetworkCall(NetworkCallRecord record)"
desc: "Adds a network call to the end of the list."
- uid: "com.azure.core.test.models.RecordedData.addVariable(java.lang.String)"
fullName: "com.azure.core.test.models.RecordedData.addVariable(String variable)"
name: "addVariable(String variable)"
nameWithType: "RecordedData.addVariable(String variable)"
summary: "Adds a variable to the end of the list."
parameters:
- description: "The variable to add to the list."
name: "variable"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public void addVariable(String variable)"
desc: "Adds a variable to the end of the list."
- uid: "com.azure.core.test.models.RecordedData.findFirstAndRemoveNetworkCall(java.util.function.Predicate<com.azure.core.test.models.NetworkCallRecord>)"
fullName: "com.azure.core.test.models.RecordedData.findFirstAndRemoveNetworkCall(Predicate<NetworkCallRecord> isMatch)"
name: "findFirstAndRemoveNetworkCall(Predicate<NetworkCallRecord> isMatch)"
nameWithType: "RecordedData.findFirstAndRemoveNetworkCall(Predicate<NetworkCallRecord> isMatch)"
summary: "Finds the first matching <xref uid=\"com.azure.core.test.models.NetworkCallRecord\" data-throw-if-not-resolved=\"false\" data-raw-source=\"NetworkCallRecord\"></xref> based on the predicate, removes it from the current network calls, and returns it."
parameters:
- description: "Predicate to match for a given network call."
name: "isMatch"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html\">Predicate</a>&lt;<xref href=\"com.azure.core.test.models.NetworkCallRecord?alt=com.azure.core.test.models.NetworkCallRecord&text=NetworkCallRecord\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public NetworkCallRecord findFirstAndRemoveNetworkCall(Predicate<NetworkCallRecord> isMatch)"
desc: "Finds the first matching <xref uid=\"com.azure.core.test.models.NetworkCallRecord\" data-throw-if-not-resolved=\"false\" data-raw-source=\"NetworkCallRecord\"></xref> based on the predicate, removes it from the current network calls, and returns it. `null` is returned if network call could not be matched."
returns:
description: "The first <xref uid=\"com.azure.core.test.models.NetworkCallRecord\" data-throw-if-not-resolved=\"false\" data-raw-source=\"NetworkCallRecord\"></xref> that matched <code>isMatch</code>, otherwise <code>null</code> if no network\n call could be matched."
type: "<xref href=\"com.azure.core.test.models.NetworkCallRecord?alt=com.azure.core.test.models.NetworkCallRecord&text=NetworkCallRecord\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.test.models.RecordedData.removeVariable()"
fullName: "com.azure.core.test.models.RecordedData.removeVariable()"
name: "removeVariable()"
nameWithType: "RecordedData.removeVariable()"
summary: "Removes the first variable from the list and returns it."
syntax: "public String removeVariable()"
desc: "Removes the first variable from the list and returns it."
returns:
description: "The first variable."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
type: "class"
desc: "Keeps track of the network calls and variable names that were made in a test session."
metadata: {}
package: "com.azure.core.test.models"
artifact: com.azure:azure-core-test:1.26.2