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

86 строки
7.7 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.test.http.AssertingHttpClientBuilder"
fullName: "com.azure.core.test.http.AssertingHttpClientBuilder"
name: "AssertingHttpClientBuilder"
nameWithType: "AssertingHttpClientBuilder"
summary: "HTTP client builder that helps in running sync and async assertion checks."
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 **AssertingHttpClientBuilder**"
constructors:
- uid: "com.azure.core.test.http.AssertingHttpClientBuilder.AssertingHttpClientBuilder(com.azure.core.http.HttpClient)"
fullName: "com.azure.core.test.http.AssertingHttpClientBuilder.AssertingHttpClientBuilder(HttpClient delegate)"
name: "AssertingHttpClientBuilder(HttpClient delegate)"
nameWithType: "AssertingHttpClientBuilder.AssertingHttpClientBuilder(HttpClient delegate)"
summary: "Create an instance of <xref uid=\"com.azure.core.test.http.AssertingHttpClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AssertingHttpClientBuilder\"></xref> with the provided Http<wbr>Client."
parameters:
- description: "the HttpClient."
name: "delegate"
type: "<xref href=\"com.azure.core.http.HttpClient?alt=com.azure.core.http.HttpClient&text=HttpClient\" data-throw-if-not-resolved=\"False\" />"
syntax: "public AssertingHttpClientBuilder(HttpClient delegate)"
desc: "Create an instance of <xref uid=\"com.azure.core.test.http.AssertingHttpClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AssertingHttpClientBuilder\"></xref> with the provided HttpClient."
methods:
- uid: "com.azure.core.test.http.AssertingHttpClientBuilder.assertAsync()"
fullName: "com.azure.core.test.http.AssertingHttpClientBuilder.assertAsync()"
name: "assertAsync()"
nameWithType: "AssertingHttpClientBuilder.assertAsync()"
summary: "Asserts that only async implementations are invoked from within the implementation call stack."
syntax: "public AssertingHttpClientBuilder assertAsync()"
desc: "Asserts that only async implementations are invoked from within the implementation call stack. Cause tests to fail if sync <xref uid=\"com.azure.core.http.HttpClient.sendSync*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClient#sendSync(HttpRequest, Context)\"></xref> is invoked."
returns:
description: "the AssertingHttpClientBuilder itself."
type: "<xref href=\"com.azure.core.test.http.AssertingHttpClientBuilder?alt=com.azure.core.test.http.AssertingHttpClientBuilder&text=AssertingHttpClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.test.http.AssertingHttpClientBuilder.assertSync()"
fullName: "com.azure.core.test.http.AssertingHttpClientBuilder.assertSync()"
name: "assertSync()"
nameWithType: "AssertingHttpClientBuilder.assertSync()"
summary: "Asserts that only sync implementations are invoked from within the implementation call stack."
syntax: "public AssertingHttpClientBuilder assertSync()"
desc: "Asserts that only sync implementations are invoked from within the implementation call stack. Cause tests to fail if async <xref uid=\"com.azure.core.http.HttpClient.send*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"or HttpClient#send(HttpRequest, Context)\"></xref> invoked."
returns:
description: "the AssertingHttpClientBuilder itself."
type: "<xref href=\"com.azure.core.test.http.AssertingHttpClientBuilder?alt=com.azure.core.test.http.AssertingHttpClientBuilder&text=AssertingHttpClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.test.http.AssertingHttpClientBuilder.build()"
fullName: "com.azure.core.test.http.AssertingHttpClientBuilder.build()"
name: "build()"
nameWithType: "AssertingHttpClientBuilder.build()"
summary: "Creates a new <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Assertion Http client\"></xref> instance that helps in providing assertions for invoking http client implementations."
syntax: "public HttpClient build()"
desc: "Creates a new <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Assertion Http client\"></xref> instance that helps in providing assertions for invoking http client implementations."
returns:
description: "A new <xref uid=\"com.azure.core.test.http.AssertingClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AssertingClient\"></xref> instance."
type: "<xref href=\"com.azure.core.http.HttpClient?alt=com.azure.core.http.HttpClient&text=HttpClient\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.test.http.AssertingHttpClientBuilder.skipRequest(java.util.function.BiFunction<com.azure.core.http.HttpRequest,com.azure.core.util.Context,java.lang.Boolean>)"
fullName: "com.azure.core.test.http.AssertingHttpClientBuilder.skipRequest(BiFunction<HttpRequest,Context,Boolean> skipRequestFunction)"
name: "skipRequest(BiFunction<HttpRequest,Context,Boolean> skipRequestFunction)"
nameWithType: "AssertingHttpClientBuilder.skipRequest(BiFunction<HttpRequest,Context,Boolean> skipRequestFunction)"
summary: "Method used to specify http requests to be skipped when executing assertions."
parameters:
- description: "the function used to specify http requests to be skipped for sync assertions."
name: "skipRequestFunction"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/function/BiFunction.html\">BiFunction</a>&lt;<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />,<xref href=\"com.azure.core.util.Context?alt=com.azure.core.util.Context&text=Context\" data-throw-if-not-resolved=\"False\" />,<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>&gt;"
syntax: "public AssertingHttpClientBuilder skipRequest(BiFunction<HttpRequest,Context,Boolean> skipRequestFunction)"
desc: "Method used to specify http requests to be skipped when executing assertions."
returns:
description: "the AssertingHttpClientBuilder itself."
type: "<xref href=\"com.azure.core.test.http.AssertingHttpClientBuilder?alt=com.azure.core.test.http.AssertingHttpClientBuilder&text=AssertingHttpClientBuilder\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "HTTP client builder that helps in running sync and async assertion checks."
metadata: {}
package: "com.azure.core.test.http"
artifact: com.azure:azure-core-test:1.26.2