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

public abstract class TestProxyTestBase extends TestBase
Base class for running live and playback tests using test-proxy
  • Constructor Details

    • TestProxyTestBase

      public TestProxyTestBase()
      Creates an instance of TestProxyTestBase.
  • Method Details

    • setupTestProxy

      @BeforeAll public static void setupTestProxy(org.junit.jupiter.api.TestInfo testInfo)
      Before tests are executed, determines the test mode by reading the AZURE_TEST_MODE environment variable. If it is not set, TestMode.PLAYBACK
      Parameters:
      testInfo - TestInfo to retrieve test related metadata.