Package | Description |
---|---|
org.junit.jupiter.api.extension |
JUnit Jupiter API for writing extensions.
|
org.junit.jupiter.engine.descriptor |
Test descriptors used within the JUnit Jupiter test engine.
|
org.junit.jupiter.engine.execution |
Internal classes for test execution within the JUnit Jupiter test engine.
|
org.junit.jupiter.engine.script |
Scripting support specific to the JUnit Jupiter test engine.
|
org.junit.jupiter.migrationsupport.conditions |
Extensions which provide support for conditional test execution features of
JUnit 4 (e.g., the
@Ignore annotation) within JUnit
Jupiter. |
org.junit.jupiter.migrationsupport.rules |
Extensions which provide (limited) support for JUnit 4 rules within JUnit Jupiter.
|
org.junit.jupiter.params.provider |
ArgumentsProvider
implementations and their corresponding
ArgumentsSource
annotations. |
Modifier and Type | Method and Description |
---|---|
ExtensionContext |
ExtensionContext.getRoot()
Get the root
ExtensionContext . |
Modifier and Type | Method and Description |
---|---|
Optional<ExtensionContext> |
ExtensionContext.getParent()
Get the parent extension context, if available.
|
Modifier and Type | Method and Description |
---|---|
void |
AfterAllCallback.afterAll(ExtensionContext context)
Callback that is invoked once after all tests in the current
container.
|
void |
AfterEachCallback.afterEach(ExtensionContext context)
Callback that is invoked after each test has been invoked.
|
void |
AfterTestExecutionCallback.afterTestExecution(ExtensionContext context)
Callback that is invoked immediately after each test has been executed.
|
void |
BeforeAllCallback.beforeAll(ExtensionContext context)
Callback that is invoked once before all tests in the current
container.
|
void |
BeforeEachCallback.beforeEach(ExtensionContext context)
Callback that is invoked before each test is invoked.
|
void |
BeforeTestExecutionCallback.beforeTestExecution(ExtensionContext context)
Callback that is invoked immediately before each test is executed.
|
Object |
TestInstanceFactory.createTestInstance(TestInstanceFactoryContext factoryContext,
ExtensionContext extensionContext)
Callback for creating a test instance for the supplied context.
|
ConditionEvaluationResult |
ExecutionCondition.evaluateExecutionCondition(ExtensionContext context)
Evaluate this condition for the supplied
ExtensionContext . |
void |
TestExecutionExceptionHandler.handleTestExecutionException(ExtensionContext context,
Throwable throwable)
Handle the supplied
throwable . |
void |
TestInstancePostProcessor.postProcessTestInstance(Object testInstance,
ExtensionContext context)
Callback for post-processing the supplied test instance.
|
Stream<TestTemplateInvocationContext> |
TestTemplateInvocationContextProvider.provideTestTemplateInvocationContexts(ExtensionContext context)
Provide invocation contexts
for the test template method represented by the supplied
context . |
Object |
ParameterResolver.resolveParameter(ParameterContext parameterContext,
ExtensionContext extensionContext)
Resolve an argument for the
Parameter in the supplied ParameterContext
for the supplied ExtensionContext . |
boolean |
ParameterResolver.supportsParameter(ParameterContext parameterContext,
ExtensionContext extensionContext)
Determine if this resolver supports resolution of an argument for the
Parameter in the supplied ParameterContext for the supplied
ExtensionContext . |
boolean |
TestTemplateInvocationContextProvider.supportsTestTemplate(ExtensionContext context)
Determine if this provider supports providing invocation contexts for the
test template method represented by the supplied
context . |
void |
TestWatcher.testAborted(ExtensionContext context,
Throwable cause)
Invoked after a test has been aborted.
|
void |
TestWatcher.testDisabled(ExtensionContext context,
Optional<String> reason)
Invoked after a disabled test has been skipped.
|
void |
TestWatcher.testFailed(ExtensionContext context,
Throwable cause)
Invoked after a test has failed.
|
void |
TestWatcher.testSuccessful(ExtensionContext context)
Invoked after a test has completed successfully.
|
Modifier and Type | Method and Description |
---|---|
protected TestInstances |
NestedClassTestDescriptor.instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
protected TestInstances |
ClassTestDescriptor.instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
protected TestInstances |
ClassTestDescriptor.instantiateTestClass(Optional<TestInstances> outerInstances,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
Modifier and Type | Method and Description |
---|---|
ExtensionContext |
JupiterEngineExecutionContext.getExtensionContext() |
Modifier and Type | Method and Description |
---|---|
ConditionEvaluationResult |
ConditionEvaluator.evaluate(ExtensionRegistry extensionRegistry,
JupiterConfiguration configuration,
ExtensionContext context)
Evaluate all
ExecutionCondition extensions registered for the
supplied ExtensionContext . |
<T> T |
ExecutableInvoker.invoke(Constructor<T> constructor,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Invoke the supplied constructor with dynamic parameter resolution.
|
<T> T |
ExecutableInvoker.invoke(Constructor<T> constructor,
Object outerInstance,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Invoke the supplied constructor with the supplied outer instance and
dynamic parameter resolution.
|
Object |
ExecutableInvoker.invoke(Method method,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Invoke the supplied
static method with dynamic parameter resolution. |
Object |
ExecutableInvoker.invoke(Method method,
Object target,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Invoke the supplied method on the supplied target object with dynamic parameter
resolution.
|
void |
AfterEachMethodAdapter.invokeAfterEachMethod(ExtensionContext context,
ExtensionRegistry registry) |
void |
BeforeEachMethodAdapter.invokeBeforeEachMethod(ExtensionContext context,
ExtensionRegistry registry) |
JupiterEngineExecutionContext.Builder |
JupiterEngineExecutionContext.Builder.withExtensionContext(ExtensionContext extensionContext) |
Constructor and Description |
---|
ConfigurationParameterAccessor(ExtensionContext context) |
Modifier and Type | Method and Description |
---|---|
ConditionEvaluationResult |
IgnoreCondition.evaluateExecutionCondition(ExtensionContext context)
Containers/tests are disabled if
@Ignore is present on
the test class or method. |
Modifier and Type | Method and Description |
---|---|
void |
VerifierSupport.afterEach(ExtensionContext context) |
void |
ExternalResourceSupport.afterEach(ExtensionContext context) |
void |
ExpectedExceptionSupport.afterEach(ExtensionContext context) |
void |
ExternalResourceSupport.beforeEach(ExtensionContext context) |
void |
ExpectedExceptionSupport.handleTestExecutionException(ExtensionContext context,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
Stream<? extends Arguments> |
ArgumentsProvider.provideArguments(ExtensionContext context)
|
Copyright © 2021. All rights reserved.