A B C D G I L M P R S T V 
All Classes All Packages

A

addTextReplacementRule(String, String) - Method in class com.azure.core.test.InterceptorManager
Add text replacement rule (regex as key, the replacement text as value) into textReplacementRules
afterTest() - Method in class com.azure.core.test.TestBase
Dispose of any resources and clean-up after a test case runs.
afterTestExecution(ExtensionContext) - Method in class com.azure.core.test.AzureTestWatcher
 
AZURE_TEST_HTTP_CLIENTS_VALUE_ALL - Static variable in class com.azure.core.test.TestBase
Specifies to use all HttpClient implementations in testing.
AZURE_TEST_HTTP_CLIENTS_VALUE_NETTY - Static variable in class com.azure.core.test.TestBase
Specifies to use Netty HttpClient implementation in testing.
AZURE_TEST_SERVICE_VERSIONS_VALUE_ALL - Static variable in class com.azure.core.test.TestBase
Specifies to use all service versions in testing.
AzureTestWatcher - Class in com.azure.core.test
JUnit 5 extension class which reports on testing running and simple metrics about the test such as run time.
AzureTestWatcher() - Constructor for class com.azure.core.test.AzureTestWatcher
 

B

beforeEach(ExtensionContext) - Method in class com.azure.core.test.TestBase
 
beforeTest() - Method in class com.azure.core.test.TestBase
Performs any set-up before each test case.
beforeTestExecution(ExtensionContext) - Method in class com.azure.core.test.AzureTestWatcher
 

C

close() - Method in class com.azure.core.test.InterceptorManager
Disposes of resources used by this InterceptorManager.
com.azure.core.test - package com.azure.core.test
Package containing common test classes for Azure client libraries.

D

didTestRun() - Method in class com.azure.core.test.TestContextManager
Returns whether the current test was ran.
doNotRecordTest() - Method in class com.azure.core.test.TestContextManager
Returns whether the test should have its network calls recorded during a record test run.

G

getHttpClientOrUsePlayback(HttpClient) - Method in class com.azure.core.test.TestBase
Convenience method which either returned the passed HttpClient or returns a PlaybackClient depending on whether the test mode is playback.
getHttpClients() - Static method in class com.azure.core.test.TestBase
Returns a list of HttpClients that should be tested.
getPlaybackClient() - Method in class com.azure.core.test.InterceptorManager
Gets a new HTTP client that plays back test session records managed by InterceptorManager.
getRecordedData() - Method in class com.azure.core.test.InterceptorManager
Gets the recorded data InterceptorManager is keeping track of.
getRecordPolicy() - Method in class com.azure.core.test.InterceptorManager
Gets a new HTTP pipeline policy that records network calls and its data is managed by InterceptorManager.
getRecordPolicy(List<Function<String, String>>) - Method in class com.azure.core.test.InterceptorManager
Gets a new HTTP pipeline policy that records network calls.
getTestMode() - Method in class com.azure.core.test.TestBase
Gets the TestMode that has been initialized.
getTestMode() - Method in class com.azure.core.test.TestContextManager
Returns the mode being used to run tests.
getTestName() - Method in class com.azure.core.test.TestBase
Deprecated.
This method is deprecated as JUnit 5 provides a simpler mechanism to get the test method name through TestInfo. Keeping this for backward compatability of other client libraries that still override this method. This method can be deleted when all client libraries remove this method. See TestBase.setupTest(TestInfo).
getTestName() - Method in class com.azure.core.test.TestContextManager
Returns the name of the test being ran.
getTestPlaybackRecordingName() - Method in class com.azure.core.test.TestContextManager
Returns the name of the playback record for the test being ran.
getValue() - Method in exception com.azure.core.test.MyAzureException
 
getValue() - Method in exception com.azure.core.test.MyRestException
 

I

interceptorManager - Variable in class com.azure.core.test.TestBase
InterceptorManager used for this test run.
InterceptorManager - Class in com.azure.core.test
A class that keeps track of network calls by either reading the data from an existing test session record or recording the network calls in memory.
InterceptorManager(TestContextManager) - Constructor for class com.azure.core.test.InterceptorManager
Creates a new InterceptorManager that either replays test-session records or saves them.
InterceptorManager(String, TestMode) - Constructor for class com.azure.core.test.InterceptorManager
Deprecated.
InterceptorManager(String, Map<String, String>) - Constructor for class com.azure.core.test.InterceptorManager
InterceptorManager(String, Map<String, String>, boolean) - Constructor for class com.azure.core.test.InterceptorManager
InterceptorManager(String, Map<String, String>, boolean, String) - Constructor for class com.azure.core.test.InterceptorManager
Creates a new InterceptorManager that replays test session records.
isLiveMode() - Method in class com.azure.core.test.InterceptorManager
Gets whether this InterceptorManager is in live mode.
isPlaybackMode() - Method in class com.azure.core.test.InterceptorManager
Gets whether this InterceptorManager is in playback mode.

L

LIVE - com.azure.core.test.TestMode
Run a live test without recording.

M

MyAzureException - Exception in com.azure.core.test
A test exception.
MyAzureException(String, HttpResponse, HttpBinJSON) - Constructor for exception com.azure.core.test.MyAzureException
Creates an exception with the message, response, and body.
MyRestException - Exception in com.azure.core.test
A test exception.
MyRestException(String, HttpResponse, HttpBinJSON) - Constructor for exception com.azure.core.test.MyRestException
Creates a service request exception.

P

PLAYBACK - com.azure.core.test.TestMode
Playback data from an existing test session.

R

RECORD - com.azure.core.test.TestMode
Record data from a live test.

S

setPlaybackPollerFluxPollInterval(PollerFlux<T, U>) - Method in class com.azure.core.test.TestBase
Sets the polling interval for the passed PollerFlux.
setPlaybackSyncPollerPollInterval(SyncPoller<T, U>) - Method in class com.azure.core.test.TestBase
Sets the polling interval for the passed SyncPoller.
setupClass() - Static method in class com.azure.core.test.TestBase
Before tests are executed, determines the test mode by reading the AZURE_TEST_MODE environment variable.
setupTest(TestInfo) - Method in class com.azure.core.test.TestBase
Sets-up the TestBase.testResourceNamer and TestBase.interceptorManager before each test case is run.
shouldClientBeTested(HttpClient) - Static method in class com.azure.core.test.TestBase
Returns whether the given http clients match the rules of test framework.
sleepIfRunningAgainstService(long) - Method in class com.azure.core.test.TestBase
Sleeps the test for the given amount of milliseconds if TestMode isn't TestMode.PLAYBACK.

T

teardownTest(TestInfo) - Method in class com.azure.core.test.TestBase
Disposes of InterceptorManager and its inheriting class' resources.
TestBase - Class in com.azure.core.test
Base class for running live and playback tests using InterceptorManager.
TestBase() - Constructor for class com.azure.core.test.TestBase
 
testContextManager - Variable in class com.azure.core.test.TestBase
TestContextManager used for this test run.
TestContextManager - Class in com.azure.core.test
This class handles managing context about a test, such as custom testing annotations and verifying whether the test is capable of running.
TestContextManager(Method, TestMode) - Constructor for class com.azure.core.test.TestContextManager
Constructs a TestContextManager based on the test method.
TestMode - Enum in com.azure.core.test
The possible testing modes.
testResourceNamer - Variable in class com.azure.core.test.TestBase
TestResourceNamer used for this test run.

V

valueOf(String) - Static method in enum com.azure.core.test.TestMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.azure.core.test.TestMode
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D G I L M P R S T V 
All Classes All Packages