Interface ServerJunitExtension.ParamHandler<T>
- Type Parameters:
T
-
- Enclosing interface:
ServerJunitExtension
public static interface ServerJunitExtension.ParamHandler<T>
Handler of server test parameters of methods annotated with
SetUpRoute
.-
Method Summary
Modifier and TypeMethodDescriptionget
(String socketName, WebServerConfig.Builder serverBuilder, ListenerConfig.Builder listenerBuilder, Router.RouterBuilder<?> routerBuilder) Get an instance to be injected.default void
handle
(String socketName, WebServerConfig.Builder serverBuilder, ListenerConfig.Builder listenerBuilder, Router.RouterBuilder<?> routerBuilder, T value) Handle the value after the method has been called, and its body updated our provided instance.
-
Method Details
-
get
T get(String socketName, WebServerConfig.Builder serverBuilder, ListenerConfig.Builder listenerBuilder, Router.RouterBuilder<?> routerBuilder) Get an instance to be injected.- Parameters:
socketName
- name of a socket this will belong toserverBuilder
- builder of the webserverlistenerBuilder
- builder of the listener associated with the socketNamerouterBuilder
- router builder to support additional routings- Returns:
- a new instance to inject as a parameter to the method
-
handle
default void handle(String socketName, WebServerConfig.Builder serverBuilder, ListenerConfig.Builder listenerBuilder, Router.RouterBuilder<?> routerBuilder, T value) Handle the value after the method has been called, and its body updated our provided instance.- Parameters:
socketName
- socket nameserverBuilder
- builder of the webserverlistenerBuilder
- builder of the listenerrouterBuilder
- router buildervalue
- the value we provided withget(String, io.helidon.webserver.WebServerConfig.Builder, io.helidon.webserver.ListenerConfig.Builder, io.helidon.webserver.Router.RouterBuilder)
-