Interface HelidonJunitExtension
- All Superinterfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.Extension
- All Known Subinterfaces:
DirectJunitExtension
,ServerJunitExtension
- All Known Implementing Classes:
Http1DirectJunitExtension
,Http1ServerJunitExtension
,Http2ServerExtension
,WsDirectExtension
,WsServerExtension
public interface HelidonJunitExtension
extends org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
Common interface for JUnit extensions that can extend features of the
ServerTest
or
RoutingTest
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
afterAll
(org.junit.jupiter.api.extension.ExtensionContext context) default void
afterEach
(org.junit.jupiter.api.extension.ExtensionContext context) default void
beforeAll
(org.junit.jupiter.api.extension.ExtensionContext context) default void
beforeEach
(org.junit.jupiter.api.extension.ExtensionContext context) default boolean
supportsParameter
(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) Does this extension support the provided parameter.
-
Method Details
-
afterAll
default void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
afterEach
default void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
beforeAll
default void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
beforeEach
default void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
supportsParameter
default boolean supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws org.junit.jupiter.api.extension.ParameterResolutionException Does this extension support the provided parameter.- Parameters:
parameterContext
- parameter contextextensionContext
- extension context- Returns:
true
if the parameter is supported by this extension,false
otherwise- Throws:
org.junit.jupiter.api.extension.ParameterResolutionException
- in case the parameter cannot be correctly resolved
-