Skip navigation links
A C F G M N P R S T 

A

addHeader(String, String) - Method in class com.azure.core.test.http.MockHttpResponse
Adds the header name and value to the existing set of HTTP headers.
addNetworkCall(NetworkCallRecord) - Method in class com.azure.core.test.models.RecordedData
Adds a network call to the end of the list.
addVariable(String) - Method in class com.azure.core.test.models.RecordedData
Adds a variable to the end of the list.

C

com.azure.core.test.http - package com.azure.core.test.http
Package containing classes to test HTTP communications in Azure client libraries.
com.azure.core.test.models - package com.azure.core.test.models
Package containing models used to test Azure client libraries.
com.azure.core.test.policy - package com.azure.core.test.policy
Package containing HttpPipelinePolicies used to test Azure client libraries.
com.azure.core.test.utils - package com.azure.core.test.utils
Package containing utility classes used for testing Azure client libraries.

F

findFirstAndRemoveNetworkCall(Predicate<NetworkCallRecord>) - Method in class com.azure.core.test.models.RecordedData
Finds the first matching NetworkCallRecord based on the predicate, removes it from the current network calls, and returns it.

G

get() - Method in class com.azure.core.test.models.NetworkCallError
 
getBody() - Method in class com.azure.core.test.http.MockHttpResponse
getBodyAsByteArray() - Method in class com.azure.core.test.http.MockHttpResponse
getBodyAsString() - Method in class com.azure.core.test.http.MockHttpResponse
getBodyAsString(Charset) - Method in class com.azure.core.test.http.MockHttpResponse
getException() - Method in class com.azure.core.test.models.NetworkCallRecord
Gets the throwable thrown during evaluation of the network call.
getHeaders() - Method in class com.azure.core.test.http.MockHttpResponse
getHeaders() - Method in class com.azure.core.test.models.NetworkCallRecord
Gets the HTTP headers for the network call.
getHeaderValue(String) - Method in class com.azure.core.test.http.MockHttpResponse
getMethod() - Method in class com.azure.core.test.models.NetworkCallRecord
Gets the HTTP method for with this network call
getResponse() - Method in class com.azure.core.test.models.NetworkCallRecord
Gets the contents of the HTTP response as a map of its HTTP headers and response body.
getStatusCode() - Method in class com.azure.core.test.http.MockHttpResponse
getUri() - Method in class com.azure.core.test.models.NetworkCallRecord
Gets the URL for this network call.

M

MockHttpClient - Class in com.azure.core.test.http
This HttpClient attempts to mimic the behavior of http://httpbin.org without ever making a network call.
MockHttpClient() - Constructor for class com.azure.core.test.http.MockHttpClient
 
MockHttpResponse - Class in com.azure.core.test.http
An HTTP response that is created to simulate a HTTP request.
MockHttpResponse(HttpRequest, int) - Constructor for class com.azure.core.test.http.MockHttpResponse
Creates a HTTP response associated with a request, returns the statusCode, and has an empty response body.
MockHttpResponse(HttpRequest, int, byte[]) - Constructor for class com.azure.core.test.http.MockHttpResponse
Creates an HTTP response associated with a request, returns the statusCode, and response body of bodyBytes.
MockHttpResponse(HttpRequest, int, HttpHeaders) - Constructor for class com.azure.core.test.http.MockHttpResponse
 
MockHttpResponse(HttpRequest, int, HttpHeaders, byte[]) - Constructor for class com.azure.core.test.http.MockHttpResponse
Creates an HTTP response associated with a request, returns the statusCode, contains the headers, and response body of bodyBytes.
MockHttpResponse(HttpRequest, int, HttpHeaders, Object) - Constructor for class com.azure.core.test.http.MockHttpResponse
Creates an HTTP response associated with a request, returns the statusCode, contains the given headers, and response body that is JSON serialized from serializable.
MockHttpResponse(HttpRequest, int, Object) - Constructor for class com.azure.core.test.http.MockHttpResponse
 

N

NetworkCallError - Class in com.azure.core.test.models
This class represents a caught throwable during a network call.
NetworkCallError() - Constructor for class com.azure.core.test.models.NetworkCallError
Empty constructor used by deserialization.
NetworkCallError(Throwable) - Constructor for class com.azure.core.test.models.NetworkCallError
Constructs the class setting the throwable and its class name.
NetworkCallRecord - Class in com.azure.core.test.models
Keeps track of network call records from each unit test session.
NetworkCallRecord() - Constructor for class com.azure.core.test.models.NetworkCallRecord
 
NoOpHttpClient - Class in com.azure.core.test.http
 
NoOpHttpClient() - Constructor for class com.azure.core.test.http.NoOpHttpClient
 
now() - Method in class com.azure.core.test.utils.TestResourceNamer
Gets an OffsetDateTime of UTC now.

P

PlaybackClient - Class in com.azure.core.test.http
HTTP client that plays back NetworkCallRecords.
PlaybackClient(RecordedData, Map<String, String>) - Constructor for class com.azure.core.test.http.PlaybackClient
Creates a PlaybackClient that replays network calls from recordedData and replaces response text for any rules specified in textReplacementRules.
process(HttpPipelineCallContext, HttpPipelineNextPolicy) - Method in class com.azure.core.test.policy.RecordNetworkCallPolicy
 

R

randomName(String, int) - Method in class com.azure.core.test.utils.ResourceNamer
Gets a random name.
randomName(String, int) - Method in class com.azure.core.test.utils.TestResourceNamer
Gets a random name.
randomUuid() - Method in class com.azure.core.test.utils.ResourceNamer
Creates a random UUID.
randomUuid() - Method in class com.azure.core.test.utils.TestResourceNamer
Gets a random UUID.
RecordedData - Class in com.azure.core.test.models
Keeps track of the network calls and variable names that were made in a test session.
RecordedData() - Constructor for class com.azure.core.test.models.RecordedData
Creates a new instance of RecordedData to manage network calls and variables in a test session.
RecordNetworkCallPolicy - Class in com.azure.core.test.policy
HTTP Pipeline policy that keeps track of each HTTP request and response that flows through the pipeline.
RecordNetworkCallPolicy(RecordedData) - Constructor for class com.azure.core.test.policy.RecordNetworkCallPolicy
Creates a policy that records network calls into recordedData.
removeVariable() - Method in class com.azure.core.test.models.RecordedData
Removes the first variable from the list and returns it.
ResourceNamer - Class in com.azure.core.test.utils
A random string generator used in tests.
ResourceNamer(String) - Constructor for class com.azure.core.test.utils.ResourceNamer
Creates a ResourceNameGenerator that prefixes its strings with the name.

S

send(HttpRequest) - Method in class com.azure.core.test.http.MockHttpClient
 
send(HttpRequest) - Method in class com.azure.core.test.http.NoOpHttpClient
 
send(HttpRequest) - Method in class com.azure.core.test.http.PlaybackClient
setClassName(String) - Method in class com.azure.core.test.models.NetworkCallError
Sets the name of the class of the throwable.
setErrorMessage(String) - Method in class com.azure.core.test.models.NetworkCallError
Sets the error message of the class of the throwable.
setException(NetworkCallError) - Method in class com.azure.core.test.models.NetworkCallRecord
Sets the throwable thrown during evaluation of the network call.
setHeaders(Map<String, String>) - Method in class com.azure.core.test.models.NetworkCallRecord
Sets the HTTP headers for the network call.
setMethod(String) - Method in class com.azure.core.test.models.NetworkCallRecord
Sets the HTTP method for with this network call
setResponse(Map<String, String>) - Method in class com.azure.core.test.models.NetworkCallRecord
Sets the contents of the HTTP response as a map of its HTTP headers and response body.
setThrowable(Throwable) - Method in class com.azure.core.test.models.NetworkCallError
Sets the throwable that was thrown during a network call.
setUri(String) - Method in class com.azure.core.test.models.NetworkCallRecord
Sets the URL for this network call.

T

TestResourceNamer - Class in com.azure.core.test.utils
Provides random string names.
TestResourceNamer(String, TestMode, RecordedData) - Constructor for class com.azure.core.test.utils.TestResourceNamer
Constructor of TestResourceNamer
A C F G M N P R S T 
Skip navigation links
Visit the Azure for Java Developerssite for more Java documentation, including quick starts, tutorials, and code samples.

Copyright © 2019 Microsoft Corporation. All rights reserved.