你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TestContextManagerParameterResolver Class

  • java.lang.Object
    • com.azure.core.test.junitextensions.TestContextManagerParameterResolver

Implements

org.junit.jupiter.api.extension.ParameterResolver

public final class TestContextManagerParameterResolver
implements org.junit.jupiter.api.extension.ParameterResolver

A ParameterResolver implementation that resolves TestContextManager parameters.

Used by the setupTest(TestContextManager testContextManager) method.

Constructor Summary

Constructor Description
TestContextManagerParameterResolver()

Creates a new instance of TestContextManagerParameterResolver.

Method Summary

Modifier and Type Method and Description
Object resolveParameter(ParameterContext parameterContext, ExtensionContext context)
boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)

Methods inherited from java.lang.Object

Constructor Details

TestContextManagerParameterResolver

public TestContextManagerParameterResolver()

Creates a new instance of TestContextManagerParameterResolver.

Method Details

resolveParameter

public Object resolveParameter(ParameterContext parameterContext, ExtensionContext context)

Parameters:

parameterContext
context

Throws:

org.junit.jupiter.api.extension.ParameterResolutionException

supportsParameter

public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)

Parameters:

parameterContext
extensionContext

Throws:

org.junit.jupiter.api.extension.ParameterResolutionException

Applies to