Class Http2ServerExtension
java.lang.Object
io.helidon.webserver.testing.junit5.http2.Http2ServerExtension
- All Implemented Interfaces:
HelidonJunitExtension,ServerJunitExtension,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
A
ServiceLoader provider implementation that adds support for injection of HTTP/2 related
artifacts, such as Http2Client in Helidon integration tests.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.testing.junit5.spi.ServerJunitExtension
ServerJunitExtension.ParamHandler<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext, Class<?> parameterType, WebServer server) Resolve a parameter.booleansupportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) Does this extension support the provided parameter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webserver.testing.junit5.spi.HelidonJunitExtension
afterAll, afterEach, beforeAll, beforeEachMethods inherited from interface io.helidon.webserver.testing.junit5.spi.ServerJunitExtension
setUpRouteParamHandler, updateListenerBuilder, updateServerBuilder
-
Constructor Details
-
Http2ServerExtension
public Http2ServerExtension()Required constructor forServiceLoader.
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws org.junit.jupiter.api.extension.ParameterResolutionException Description copied from interface:HelidonJunitExtensionDoes this extension support the provided parameter.- Specified by:
supportsParameterin interfaceHelidonJunitExtension- Parameters:
parameterContext- parameter contextextensionContext- extension context- Returns:
trueif the parameter is supported by this extension,falseotherwise- Throws:
org.junit.jupiter.api.extension.ParameterResolutionException- in case the parameter cannot be correctly resolved
-
resolveParameter
public Object resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext, Class<?> parameterType, WebServer server) Description copied from interface:ServerJunitExtensionResolve a parameter. Provide an instance of the parameter. Only called ifHelidonJunitExtension.supportsParameter(org.junit.jupiter.api.extension.ParameterContext, org.junit.jupiter.api.extension.ExtensionContext)returnedtrue.- Specified by:
resolveParameterin interfaceServerJunitExtension- Parameters:
parameterContext- JUnit parameter contextextensionContext- JUnit extension contextparameterType- type of parameterserver- webserver instance- Returns:
- instance of the expected type
-