Class JettyServerExtension
java.lang.Object
com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
com.github.mjeanroy.junit.servers.jetty.jupiter.JettyServerExtension
- All Implemented Interfaces:
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
,org.junit.jupiter.api.extension.ParameterResolver
Deprecated.
A specialized
JunitServerExtension
that will instantiate an EmbeddedJetty
server automatically instead of using the Service Provider API.
Since this jupiter extends JunitServerExtension
, it has exactly the same features (parameter
injections, etc.).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create the jupiter with default behavior.Deprecated.Create the jupiter and specify the embedded jetty instance to use.JettyServerExtension
(EmbeddedJettyConfiguration configuration) Deprecated.Create the jupiter and specify the embedded jetty configuration to use (when using * jupiter withRegisterExtension
). -
Method Summary
Modifier and TypeMethodDescriptionprotected EmbeddedServer<?>
instantiateServer
(Class<?> testClass, AbstractConfiguration configuration) Deprecated.Methods inherited from class com.github.mjeanroy.junit.servers.jupiter.JunitServerExtension
afterAll, afterEach, beforeAll, beforeEach, resolveParameter, supportsParameter
-
Constructor Details
-
JettyServerExtension
public JettyServerExtension()Deprecated.Create the jupiter with default behavior. -
JettyServerExtension
Deprecated.Create the jupiter and specify the embedded jetty instance to use.- Parameters:
jetty
- The embedded jetty instance to use.- Throws:
NullPointerException
- Ifjetty
isnull
.
-
JettyServerExtension
Deprecated.Create the jupiter and specify the embedded jetty configuration to use (when using * jupiter withRegisterExtension
).- Parameters:
configuration
- The embedded jetty configuration to use.- Throws:
NullPointerException
- Ifconfiguration
isnull
.
-
-
Method Details
-
instantiateServer
protected EmbeddedServer<?> instantiateServer(Class<?> testClass, AbstractConfiguration configuration) Deprecated.- Overrides:
instantiateServer
in classJunitServerExtension
-
junit-servers-jetty-9
instead.