Annotation Type JUnitNatsServer
-
@Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @ExtendWith(NatsServer.class) public @interface JUnitNatsServer
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
binaryFile
File to nats server binary so no download will be neededString[]
config
Passes the original parameters toNats.config()
for startupNatsConfig
String
configFile
Config fileString
downloadUrl
Custom download URLboolean
keepAlive
Prevents theNatsServer
from recreating for each test classString
name
Nats server nameint
port
Sets nats port -1 means random portlong
timeoutMs
Defines the startup and teardown timeoutString
version
Sets the version for theNatsServer
-
-
-
-
name
String name
Nats server name- Default:
- ""
-
-
-
configFile
String configFile
Config file- Default:
- ""
-
-
-
downloadUrl
String downloadUrl
Custom download URL- Default:
- ""
-
-
-
binaryFile
String binaryFile
File to nats server binary so no download will be needed- Default:
- ""
-
-
-
config
String[] config
Passes the original parameters toNats.config()
for startupNatsConfig
- Default:
- {}
-
-
-
keepAlive
boolean keepAlive
Prevents theNatsServer
from recreating for each test class- Default:
- false
-
-
-
version
String version
Sets the version for theNatsServer
- Default:
- ""
-
-