Package org.kiwiproject.eureka.junit
Class EurekaServerExtension
- java.lang.Object
-
- org.kiwiproject.eureka.junit.EurekaServerExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.Extension
public class EurekaServerExtension extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
JUnit Jupiter extension that starts a local Eureka testing server before any test has run, and stops the server after all tests have (successfully or otherwise) completed.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EUREKA_API_BASE_PATH
The base path at which the testing Eureka server will respond to requests.
-
Constructor Summary
Constructors Constructor Description EurekaServerExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
-
-
-
Field Detail
-
EUREKA_API_BASE_PATH
public static final String EUREKA_API_BASE_PATH
The base path at which the testing Eureka server will respond to requests.- See Also:
- Constant Field Values
-
-