Package com.azure.core.test
Class TestProxyTestBase
java.lang.Object
com.azure.core.test.TestBase
com.azure.core.test.TestProxyTestBase
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
Base class for running live and playback tests using test-proxy
-
Field Summary
Fields inherited from class com.azure.core.test.TestBase
AZURE_TEST_HTTP_CLIENTS_VALUE_ALL, AZURE_TEST_HTTP_CLIENTS_VALUE_NETTY, AZURE_TEST_SERVICE_VERSIONS_VALUE_ALL, interceptorManager, testContextManager, testResourceNamer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetupTestProxy(org.junit.jupiter.api.TestInfo testInfo) Before tests are executed, determines the test mode by reading theAZURE_TEST_MODEenvironment variable.Methods inherited from class com.azure.core.test.TestBase
afterTest, beforeEach, beforeTest, getHttpClientOrUsePlayback, getHttpClients, getTestClassPath, getTestMode, getTestName, isTestProxyEnabled, setPlaybackPollerFluxPollInterval, setPlaybackSyncPollerPollInterval, setTestProxyEnabled, setupClass, setupTest, shouldClientBeTested, sleepIfRunningAgainstService, teardownTest
-
Constructor Details
-
TestProxyTestBase
public TestProxyTestBase()Creates an instance ofTestProxyTestBase.
-
-
Method Details
-
setupTestProxy
@BeforeAll public static void setupTestProxy(org.junit.jupiter.api.TestInfo testInfo) Before tests are executed, determines the test mode by reading theAZURE_TEST_MODEenvironment variable. If it is not set,TestMode.PLAYBACK- Parameters:
testInfo-TestInfoto retrieve test related metadata.
-