@Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @ExtendWith(value=NatsServer.class) public @interface JUnitNatsServer
| Modifier and Type | Optional Element and Description |
|---|---|
String |
binaryFile
File to nats server binary so no download will be needed
|
String[] |
config
Passes the original parameters to
Nats.config(NatsConfig, String) for startup
NatsConfig |
String |
configFile
Config file
|
String |
downloadUrl
Custom download URL
|
boolean |
keepAlive
Prevents the
NatsServer from recreating for each test class |
String |
name
Nats server name
|
int |
port
Sets nats port
-1 means random port
|
long |
timeoutMs
Defines the startup and teardown timeout
|
public abstract String name
public abstract String configFile
public abstract String downloadUrl
public abstract String binaryFile
public abstract String[] config
Nats.config(NatsConfig, String) for startup
NatsConfigpublic abstract boolean keepAlive
NatsServer from recreating for each test classCopyright © 2022. All rights reserved.